Lines Matching refs:dst

228 int mbedtls_ssl_session_copy(mbedtls_ssl_session *dst,  in mbedtls_ssl_session_copy()  argument
231 mbedtls_ssl_session_free(dst); in mbedtls_ssl_session_copy()
232 memcpy(dst, src, sizeof(mbedtls_ssl_session)); in mbedtls_ssl_session_copy()
234 dst->ticket = NULL; in mbedtls_ssl_session_copy()
237 dst->hostname = NULL; in mbedtls_ssl_session_copy()
243 dst->ticket_alpn = NULL; in mbedtls_ssl_session_copy()
252 dst->peer_cert = mbedtls_calloc(1, sizeof(mbedtls_x509_crt)); in mbedtls_ssl_session_copy()
253 if (dst->peer_cert == NULL) { in mbedtls_ssl_session_copy()
257 mbedtls_x509_crt_init(dst->peer_cert); in mbedtls_ssl_session_copy()
259 if ((ret = mbedtls_x509_crt_parse_der(dst->peer_cert, src->peer_cert->raw.p, in mbedtls_ssl_session_copy()
261 mbedtls_free(dst->peer_cert); in mbedtls_ssl_session_copy()
262 dst->peer_cert = NULL; in mbedtls_ssl_session_copy()
268 dst->peer_cert_digest = in mbedtls_ssl_session_copy()
270 if (dst->peer_cert_digest == NULL) { in mbedtls_ssl_session_copy()
274 memcpy(dst->peer_cert_digest, src->peer_cert_digest, in mbedtls_ssl_session_copy()
276 dst->peer_cert_digest_type = src->peer_cert_digest_type; in mbedtls_ssl_session_copy()
277 dst->peer_cert_digest_len = src->peer_cert_digest_len; in mbedtls_ssl_session_copy()
286 int ret = mbedtls_ssl_session_set_ticket_alpn(dst, src->ticket_alpn); in mbedtls_ssl_session_copy()
295 dst->ticket = mbedtls_calloc(1, src->ticket_len); in mbedtls_ssl_session_copy()
296 if (dst->ticket == NULL) { in mbedtls_ssl_session_copy()
300 memcpy(dst->ticket, src->ticket, src->ticket_len); in mbedtls_ssl_session_copy()
307 ret = mbedtls_ssl_session_set_hostname(dst, src->hostname); in mbedtls_ssl_session_copy()
3348 mbedtls_ssl_session *dst) in mbedtls_ssl_get_session() argument
3353 dst == NULL || in mbedtls_ssl_get_session()
3374 ret = mbedtls_ssl_session_copy(dst, ssl->session); in mbedtls_ssl_get_session()
6380 unsigned char *dst, in mbedtls_ssl_get_handshake_transcript() argument
6412 status = psa_hash_finish(&hash_operation, dst, dst_len, olen); in mbedtls_ssl_get_handshake_transcript()
6429 unsigned char *dst, in ssl_get_handshake_transcript_sha384() argument
6450 if ((ret = mbedtls_md_finish(&sha384, dst)) != 0) { in ssl_get_handshake_transcript_sha384()
6467 unsigned char *dst, in ssl_get_handshake_transcript_sha256() argument
6488 if ((ret = mbedtls_md_finish(&sha256, dst)) != 0) { in ssl_get_handshake_transcript_sha256()
6504 unsigned char *dst, in mbedtls_ssl_get_handshake_transcript() argument
6512 return ssl_get_handshake_transcript_sha384(ssl, dst, dst_len, olen); in mbedtls_ssl_get_handshake_transcript()
6517 return ssl_get_handshake_transcript_sha256(ssl, dst, dst_len, olen); in mbedtls_ssl_get_handshake_transcript()
6524 (void) dst; in mbedtls_ssl_get_handshake_transcript()