Lines Matching refs:buf

239     char buf[256];  in elog()  local
240 mbedtls_strerror(rc, buf, sizeof(buf)); in elog()
241 log_error(errh, file, line, "MTLS: %s: %s (-0x%04x)", msg, buf, -rc); in elog()
317 int buf[23]; /* 92 bytes */ in mod_mbedtls_session_ticket_key_file() local
319 if (0 != fdevent_load_file_bytes((char *)buf,(off_t)sizeof(buf),0,fn,NULL)) in mod_mbedtls_session_ticket_key_file()
321 if (buf[0] == 0) { /*(format version 0)*/ in mod_mbedtls_session_ticket_key_file()
322 session_ticket_keys[0].active_ts = TIME64_CAST(buf[1]); in mod_mbedtls_session_ticket_key_file()
323 session_ticket_keys[0].expire_ts = TIME64_CAST(buf[2]); in mod_mbedtls_session_ticket_key_file()
325 memcpy(&session_ticket_keys[0].tick_key_name, buf+3, 80); in mod_mbedtls_session_ticket_key_file()
328 buf+3, TLSEXT_KEYNAME_LENGTH); in mod_mbedtls_session_ticket_key_file()
330 buf+7, TLSEXT_TICK_KEY_LENGTH); in mod_mbedtls_session_ticket_key_file()
332 buf+15, TLSEXT_TICK_KEY_LENGTH); in mod_mbedtls_session_ticket_key_file()
337 mbedtls_platform_zeroize(buf, sizeof(buf)); in mod_mbedtls_session_ticket_key_file()
935 const unsigned char *buf = mbedtls_pem_get_buffer(&pem, &buflen); in mod_mbedtls_x509_crt_parse_acme() local
937 const unsigned char *buf = pem.MBEDTLS_PRIVATE(buf); in mod_mbedtls_x509_crt_parse_acme() local
940 rc = mbedtls_x509_crt_parse_der_with_ext_cb(chain,buf,buflen,1,cb,NULL); in mod_mbedtls_x509_crt_parse_acme()
2449 unsigned char buf[4096]; in https_add_ssl_client_cert() local
2453 buf, sizeof(buf), &olen)) in https_add_ssl_client_cert()
2456 (char *)buf, olen); in https_add_ssl_client_cert()
2471 char buf[512]; /* MBEDTLS_X509_MAX_DN_NAME_SIZE is (256) */ in https_add_ssl_client_subject() local
2483 if (n+2+len+1+name->val.len > sizeof(buf)) continue; in https_add_ssl_client_subject()
2484 buf[n++] = ','; /*(", " at beginning is skipped outside loop below)*/ in https_add_ssl_client_subject()
2485 buf[n++] = ' '; in https_add_ssl_client_subject()
2486 memcpy(buf+n, short_name, len); in https_add_ssl_client_subject()
2488 buf[n++] = '='; in https_add_ssl_client_subject()
2492 buf[n+i] = (c >= 32 && c != 127) ? c : '?'; in https_add_ssl_client_subject()
2495 http_header_env_set(r, key, prelen+len, buf+n, name->val.len); in https_add_ssl_client_subject()
2509 http_header_env_set(r, CONST_STR_LEN("SSL_CLIENT_S_DN"), buf+2, n-2); in https_add_ssl_client_subject()
2519 char buf[512]; in https_add_ssl_client_verify_err() local
2520 int n = mbedtls_x509_crt_verify_info(buf, sizeof(buf), "", status); in https_add_ssl_client_verify_err()
2522 for (char *nl = buf; NULL != (nl = strchr(nl, '\n')); ++nl) in https_add_ssl_client_verify_err()
2524 buffer_append_string_len(b, buf, n); in https_add_ssl_client_verify_err()
2652 char buf[LI_ITOSTRING_LENGTH]; in http_cgi_ssl_env() local
2654 buf, li_utostrn(buf, sizeof(buf), algkeysize)); in http_cgi_ssl_env()
2656 buf, li_utostrn(buf, sizeof(buf), usekeysize)); in http_cgi_ssl_env()
4228 unsigned char *buf; in ssl_parse_client_hello() local
4247 buf = ssl->in_hdr; in ssl_parse_client_hello()
4258 if( buf[0] != MBEDTLS_SSL_MSG_HANDSHAKE ) in ssl_parse_client_hello()
4295 buf = ssl->in_msg; in ssl_parse_client_hello()
4310 if( buf[0] != MBEDTLS_SSL_HS_CLIENT_HELLO ) in ssl_parse_client_hello()
4316 if( buf[1] != 0 || in ssl_parse_client_hello()
4317 msg_len != 4u /*mbedtls_ssl_hs_hdr_len( ssl )*/ + ( ( buf[2] << 8 ) | buf[3] ) ) in ssl_parse_client_hello()
4322 buf += 4; /* mbedtls_ssl_hs_hdr_len( ssl ); */ in ssl_parse_client_hello()
4356 ssl->conf->transport, buf ); in ssl_parse_client_hello()
4361 const size_t sess_len = buf[34]; in ssl_parse_client_hello()
4374 const size_t ciph_len = ( buf[ciph_offset + 0] << 8 ) in ssl_parse_client_hello()
4375 | ( buf[ciph_offset + 1] ); in ssl_parse_client_hello()
4389 const size_t comp_len = buf[comp_offset]; in ssl_parse_client_hello()
4415 ext_len = ( buf[ext_offset + 0] << 8 ) in ssl_parse_client_hello()
4416 | ( buf[ext_offset + 1] ); in ssl_parse_client_hello()
4426 unsigned char *ext = buf + ext_offset + 2; in ssl_parse_client_hello()