X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fstatem%2Fstatem_lib.c;h=da26ef8c168898c41c42ef8ee5177ed83566ef33;hp=0a482fd3a75a4dc06e76abd58304fd8e61a7095a;hb=a29fa98cebdb2904dcf844d1aea7d1be3b6b913a;hpb=e2726ce64dc0762d9678fb10639b0f42d9abfc52 diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index 0a482fd3a7..da26ef8c16 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -78,7 +78,7 @@ int tls_construct_finished(SSL *s, const char *sender, int slen) WPACKET pkt; if (!WPACKET_init(&pkt, s->init_buf) - || !ssl_set_handshake_header2(s, &pkt, SSL3_MT_FINISHED)) { + || !ssl_set_handshake_header(s, &pkt, SSL3_MT_FINISHED)) { SSLerr(SSL_F_TLS_CONSTRUCT_FINISHED, ERR_R_INTERNAL_ERROR); goto err; } @@ -297,7 +297,7 @@ unsigned long ssl3_output_cert_chain(SSL *s, CERT_PKEY *cpk) goto err; } - if (!ssl_set_handshake_header2(s, &pkt, SSL3_MT_CERTIFICATE) + if (!ssl_set_handshake_header(s, &pkt, SSL3_MT_CERTIFICATE) || !WPACKET_start_sub_packet_u24(&pkt)) { SSLerr(SSL_F_SSL3_OUTPUT_CERT_CHAIN, ERR_R_INTERNAL_ERROR); goto err;