Searched refs:peer_pk (Results 1 – 2 of 2) sorted by relevance
1917 mbedtls_pk_context *peer_pk; in ssl_write_encrypted_pms() local1942 peer_pk = &ssl->handshake->peer_pubkey; in ssl_write_encrypted_pms()1949 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()1955 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_RSA)) { in ssl_write_encrypted_pms()1960 if ((ret = mbedtls_pk_encrypt(peer_pk, in ssl_write_encrypted_pms()1976 mbedtls_pk_free(peer_pk); in ssl_write_encrypted_pms()1989 mbedtls_pk_context *peer_pk; in ssl_get_ecdh_params_from_cert() local1992 peer_pk = &ssl->handshake->peer_pubkey; in ssl_get_ecdh_params_from_cert()1999 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()2004 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()[all …]
4108 mbedtls_pk_context *peer_pk; in ssl_parse_certificate_verify() local4151 peer_pk = &ssl->handshake->peer_pubkey; in ssl_parse_certificate_verify()4157 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_certificate_verify()4206 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_certificate_verify()4236 if ((ret = mbedtls_pk_verify(peer_pk, in ssl_parse_certificate_verify()