Lines Matching refs:cur

498     sni_entry *cur = head, *next;  in sni_free()  local
500 while( cur != NULL ) in sni_free()
502 mbedtls_x509_crt_free( cur->cert ); in sni_free()
503 mbedtls_free( cur->cert ); in sni_free()
505 mbedtls_pk_free( cur->key ); in sni_free()
506 mbedtls_free( cur->key ); in sni_free()
508 mbedtls_x509_crt_free( cur->ca ); in sni_free()
509 mbedtls_free( cur->ca ); in sni_free()
511 mbedtls_x509_crl_free( cur->crl ); in sni_free()
512 mbedtls_free( cur->crl ); in sni_free()
514 next = cur->next; in sni_free()
515 mbedtls_free( cur ); in sni_free()
516 cur = next; in sni_free()
529 sni_entry *cur = NULL, *new = NULL; in sni_parse() local
542 sni_free( cur ); in sni_parse()
594 new->next = cur; in sni_parse()
595 cur = new; in sni_parse()
598 return( cur ); in sni_parse()
602 sni_free( cur ); in sni_parse()
612 const sni_entry *cur = (const sni_entry *) p_info; in sni_callback() local
614 while( cur != NULL ) in sni_callback()
616 if( name_len == strlen( cur->name ) && in sni_callback()
617 memcmp( name, cur->name, name_len ) == 0 ) in sni_callback()
619 if( cur->ca != NULL ) in sni_callback()
620 mbedtls_ssl_set_hs_ca_chain( ssl, cur->ca, cur->crl ); in sni_callback()
622 if( cur->authmode != DFL_AUTH_MODE ) in sni_callback()
623 mbedtls_ssl_set_hs_authmode( ssl, cur->authmode ); in sni_callback()
625 return( mbedtls_ssl_set_hs_own_cert( ssl, cur->cert, cur->key ) ); in sni_callback()
628 cur = cur->next; in sni_callback()
709 psk_entry *cur = NULL, *new = NULL; in psk_parse() local
731 new->next = cur; in psk_parse()
732 cur = new; in psk_parse()
735 return( cur ); in psk_parse()
739 psk_free( cur ); in psk_parse()
749 psk_entry *cur = (psk_entry *) p_info; in psk_callback() local
751 while( cur != NULL ) in psk_callback()
753 if( name_len == strlen( cur->name ) && in psk_callback()
754 memcmp( name, cur->name, name_len ) == 0 ) in psk_callback()
756 return( mbedtls_ssl_set_hs_psk( ssl, cur->key, cur->key_len ) ); in psk_callback()
759 cur = cur->next; in psk_callback()