Lines Matching refs:keylog_file_fp
52 static FILE *keylog_file_fp; variable
59 if(!keylog_file_fp) { in Curl_tls_keylog_open()
62 keylog_file_fp = fopen(keylog_file_name, FOPEN_APPENDTEXT); in Curl_tls_keylog_open()
63 if(keylog_file_fp) { in Curl_tls_keylog_open()
65 if(setvbuf(keylog_file_fp, NULL, _IONBF, 0)) in Curl_tls_keylog_open()
67 if(setvbuf(keylog_file_fp, NULL, _IOLBF, 4096)) in Curl_tls_keylog_open()
70 fclose(keylog_file_fp); in Curl_tls_keylog_open()
71 keylog_file_fp = NULL; in Curl_tls_keylog_open()
82 if(keylog_file_fp) { in Curl_tls_keylog_close()
83 fclose(keylog_file_fp); in Curl_tls_keylog_close()
84 keylog_file_fp = NULL; in Curl_tls_keylog_close()
91 return keylog_file_fp != NULL; in Curl_tls_keylog_enabled()
101 if(!keylog_file_fp || !line) { in Curl_tls_keylog_write_line()
119 fputs(buf, keylog_file_fp); in Curl_tls_keylog_write_line()
133 if(!keylog_file_fp) { in Curl_tls_keylog_write()
163 fputs(line, keylog_file_fp); in Curl_tls_keylog_write()