Lines Matching refs:n

1185     const int n = (int)strlen(in);  in mod_mbedtls_alpn_selected()  local
1189 switch (n) { in mod_mbedtls_alpn_selected()
1231 for (unsigned int i = 2, n; i < inlen; i += n) { in mod_mbedtls_alpn_select_cb() local
1232 n = in[i++]; in mod_mbedtls_alpn_select_cb()
1233 if (i+n > inlen || 0 == n) break; in mod_mbedtls_alpn_select_cb()
1234 switch (n) { in mod_mbedtls_alpn_select_cb()
2468 size_t n = 0; 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()
2487 n += 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()
2496 n += name->val.len; in https_add_ssl_client_subject()
2508 if (n > 2) 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()
2520 int n = mbedtls_x509_crt_verify_info(buf, sizeof(buf), "", status); in https_add_ssl_client_verify_err() local
2521 if (n > 0) { in https_add_ssl_client_verify_err()
2523 nl[0] = ('\0' == nl[1] ? (--n, '\0') : ':'); in https_add_ssl_client_verify_err()
2524 buffer_append_string_len(b, buf, n); in https_add_ssl_client_verify_err()
3419 char n[128]; /*(most ciphersuite names are about 40 chars)*/ in mod_mbedtls_ssl_conf_ciphersuites() local
3432 if (len >= sizeof(n)) { in mod_mbedtls_ssl_conf_ciphersuites()
3438 memcpy(n, p, len); in mod_mbedtls_ssl_conf_ciphersuites()
3439 n[len] = '\0'; in mod_mbedtls_ssl_conf_ciphersuites()
3441 int id = mbedtls_ssl_get_ciphersuite_id(n); in mod_mbedtls_ssl_conf_ciphersuites()
3445 (int)len, n); in mod_mbedtls_ssl_conf_ciphersuites()
3454 (int)len, n); in mod_mbedtls_ssl_conf_ciphersuites()
3462 (int)len, n); in mod_mbedtls_ssl_conf_ciphersuites()
3620 if (len >= sizeof(n)) { in mod_mbedtls_ssl_conf_ciphersuites()
3628 memcpy(n, c ? p+1 : p, nlen); in mod_mbedtls_ssl_conf_ciphersuites()
3629 n[nlen] = '\0'; in mod_mbedtls_ssl_conf_ciphersuites()
3638 char *a = strchr(n, '@'); in mod_mbedtls_ssl_conf_ciphersuites()
3643 nlen = (size_t)(a - n); in mod_mbedtls_ssl_conf_ciphersuites()
3646 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("TLSv1.2"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3655 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("TLSv1.0"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3669 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("ECDHE+AESGCM")) in mod_mbedtls_ssl_conf_ciphersuites()
3670 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("EECDH+AESGCM"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3691 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("DHE+AESGCM")) in mod_mbedtls_ssl_conf_ciphersuites()
3692 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("EDH+AESGCM"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3702 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES256+EECDH"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3726 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES256+EDH"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3740 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("HIGH"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3748 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES256")) in mod_mbedtls_ssl_conf_ciphersuites()
3749 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3763 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES128")) in mod_mbedtls_ssl_conf_ciphersuites()
3764 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("AES"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3778 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("CAMELLIA256")) in mod_mbedtls_ssl_conf_ciphersuites()
3779 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("CAMELLIA"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3794 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("CAMELLIA128")) in mod_mbedtls_ssl_conf_ciphersuites()
3795 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("CAMELLIA"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3810 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("ARIA256")) in mod_mbedtls_ssl_conf_ciphersuites()
3811 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("ARIA"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3825 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("ARIA128")) in mod_mbedtls_ssl_conf_ciphersuites()
3826 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("ARIA"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3840 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("CHACHA20"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3850 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("PSK"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3869 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("3DES"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3882 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("RC4"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3893 if (buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("NULL")) in mod_mbedtls_ssl_conf_ciphersuites()
3894 || buffer_eq_icase_ss(n, nlen, CONST_STR_LEN("eNULL"))) { in mod_mbedtls_ssl_conf_ciphersuites()
3904 mbedtls_ssl_ciphersuite_from_string(n); in mod_mbedtls_ssl_conf_ciphersuites()
3986 const char * const n = e+1; in mod_mbedtls_ssl_conf_curves() local
3987 e = strchr(n, ':'); in mod_mbedtls_ssl_conf_curves()
3988 size_t len = e ? (size_t)(e - n) : strlen(n); in mod_mbedtls_ssl_conf_curves()
3992 if (0 == strncmp(info->name, n, len) && info->name[len] == '\0') in mod_mbedtls_ssl_conf_curves()
3997 "MTLS: unrecognized curve: %.*s; ignored", (int)len, n); in mod_mbedtls_ssl_conf_curves()
4043 const char * const n = e+1; in mod_mbedtls_ssl_conf_curves() local
4044 e = strchr(n, ':'); in mod_mbedtls_ssl_conf_curves()
4045 size_t len = e ? (size_t)(e - n) : strlen(n); in mod_mbedtls_ssl_conf_curves()
4049 if (0 == strncmp(info->name, n, len) && info->name[len] == '\0') in mod_mbedtls_ssl_conf_curves()
4054 "MTLS: unrecognized curve: %.*s; ignored", (int)len, n); in mod_mbedtls_ssl_conf_curves()