Searched refs:peer_pk (Results 1 – 2 of 2) sorted by relevance
2846 mbedtls_pk_context * peer_pk; in ssl_write_encrypted_pms() local2874 peer_pk = &ssl->handshake->peer_pubkey; in ssl_write_encrypted_pms()2882 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()2888 if( ! mbedtls_pk_can_do( peer_pk, MBEDTLS_PK_RSA ) ) in ssl_write_encrypted_pms()2894 if( ( ret = mbedtls_pk_encrypt( peer_pk, in ssl_write_encrypted_pms()2916 mbedtls_pk_free( peer_pk ); in ssl_write_encrypted_pms()2997 mbedtls_pk_context * peer_pk; in ssl_get_ecdh_params_from_cert() local3000 peer_pk = &ssl->handshake->peer_pubkey; in ssl_get_ecdh_params_from_cert()3008 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()3011 if( ! mbedtls_pk_can_do( peer_pk, MBEDTLS_PK_ECKEY ) ) in ssl_get_ecdh_params_from_cert()[all …]
4411 mbedtls_pk_context * peer_pk; in ssl_parse_certificate_verify() local4459 peer_pk = &ssl->handshake->peer_pubkey; in ssl_parse_certificate_verify()4466 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_certificate_verify()4483 if( mbedtls_pk_can_do( peer_pk, MBEDTLS_PK_ECDSA ) ) in ssl_parse_certificate_verify()4538 if( !mbedtls_pk_can_do( peer_pk, pk_alg ) ) in ssl_parse_certificate_verify()4574 if( ( ret = mbedtls_pk_verify( peer_pk, in ssl_parse_certificate_verify()