summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/vtls/keylog.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/vtls/keylog.c')
-rw-r--r--libs/libcurl/src/vtls/keylog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/libcurl/src/vtls/keylog.c b/libs/libcurl/src/vtls/keylog.c
index 9cdfc02213..e403114934 100644
--- a/libs/libcurl/src/vtls/keylog.c
+++ b/libs/libcurl/src/vtls/keylog.c
@@ -99,13 +99,13 @@ Curl_tls_keylog_write_line(const char *line)
char buf[256];
if(!keylog_file_fp || !line) {
- return false;
+ return FALSE;
}
linelen = strlen(line);
if(linelen == 0 || linelen > sizeof(buf) - 2) {
/* Empty line or too big to fit in a LF and NUL. */
- return false;
+ return FALSE;
}
memcpy(buf, line, linelen);
@@ -117,7 +117,7 @@ Curl_tls_keylog_write_line(const char *line)
/* Using fputs here instead of fprintf since libcurl's fprintf replacement
may not be thread-safe. */
fputs(buf, keylog_file_fp);
- return true;
+ return TRUE;
}
bool
@@ -131,13 +131,13 @@ Curl_tls_keylog_write(const char *label,
2 * SECRET_MAXLEN + 1 + 1];
if(!keylog_file_fp) {
- return false;
+ return FALSE;
}
pos = strlen(label);
if(pos > KEYLOG_LABEL_MAXLEN || !secretlen || secretlen > SECRET_MAXLEN) {
/* Should never happen - sanity check anyway. */
- return false;
+ return FALSE;
}
memcpy(line, label, pos);
@@ -161,7 +161,7 @@ Curl_tls_keylog_write(const char *label,
/* Using fputs here instead of fprintf since libcurl's fprintf replacement
may not be thread-safe. */
fputs(line, keylog_file_fp);
- return true;
+ return TRUE;
}
#endif /* TLS or QUIC backend */