Lines Matching refs:cur
609 mbedtls_ssl_key_cert *cur, *list, *fallback = NULL; in ssl_pick_cert() local
631 for( cur = list; cur != NULL; cur = cur->next ) in ssl_pick_cert()
634 cur->cert ); in ssl_pick_cert()
636 if( ! mbedtls_pk_can_do( cur->key, pk_alg ) ) in ssl_pick_cert()
650 if( mbedtls_ssl_check_cert_usage( cur->cert, ciphersuite_info, in ssl_pick_cert()
660 ssl_check_key_curve( cur->key, ssl->handshake->curves ) != 0 ) in ssl_pick_cert()
673 cur->cert->sig_md != MBEDTLS_MD_SHA1 ) in ssl_pick_cert()
676 fallback = cur; in ssl_pick_cert()
688 if( cur == NULL ) in ssl_pick_cert()
689 cur = fallback; in ssl_pick_cert()
692 if( cur != NULL ) in ssl_pick_cert()
694 ssl->handshake->key_cert = cur; in ssl_pick_cert()
2557 const int *cur; local
2562 for( cur = ssl->conf->sig_hashes; *cur != MBEDTLS_MD_NONE; cur++ )
2564 unsigned char hash = mbedtls_ssl_hash_from_md_alg( *cur );