Searched refs:peer_pk (Results 1 – 2 of 2) sorted by relevance
1919 mbedtls_pk_context *peer_pk; in ssl_write_encrypted_pms() local1944 peer_pk = &ssl->handshake->peer_pubkey; in ssl_write_encrypted_pms()1951 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()1957 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_RSA)) { in ssl_write_encrypted_pms()1962 if ((ret = mbedtls_pk_encrypt(peer_pk, in ssl_write_encrypted_pms()1978 mbedtls_pk_free(peer_pk); in ssl_write_encrypted_pms()1992 mbedtls_pk_context *peer_pk; in ssl_get_ecdh_params_from_cert() local1995 peer_pk = &ssl->handshake->peer_pubkey; in ssl_get_ecdh_params_from_cert()2002 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()2007 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()[all …]
4027 mbedtls_pk_context *peer_pk; in ssl_parse_certificate_verify() local4070 peer_pk = &ssl->handshake->peer_pubkey; in ssl_parse_certificate_verify()4076 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_certificate_verify()4125 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_certificate_verify()4155 if ((ret = mbedtls_pk_verify(peer_pk, in ssl_parse_certificate_verify()