Lines Matching refs:line
94 Curl_tls_keylog_write_line(const char *line)
96 /* The current maximum valid keylog line length LF and NUL is 195. */
100 if(!keylog_file_fp || !line) {
104 linelen = strlen(line);
106 /* Empty line or too big to fit in a LF and NUL. */
110 memcpy(buf, line, linelen);
111 if(line[linelen - 1] != '\n') {
129 char line[KEYLOG_LABEL_MAXLEN + 1 + 2 * CLIENT_RANDOM_SIZE + 1 +
142 memcpy(line, label, pos);
143 line[pos++] = ' ';
147 line[pos++] = hex[client_random[i] >> 4];
148 line[pos++] = hex[client_random[i] & 0xF];
150 line[pos++] = ' ';
154 line[pos++] = hex[secret[i] >> 4];
155 line[pos++] = hex[secret[i] & 0xF];
157 line[pos++] = '\n';
158 line[pos] = '\0';
162 fputs(line, keylog_file_fp);