Deleted Added
full compact
s3_clnt.c (205128) s3_clnt.c (215288)
1/* ssl/s3_clnt.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 1363 unchanged lines hidden (view full) ---

1372 else if (alg & SSL_aECDSA)
1373 pkey=X509_get_pubkey(s->session->sess_cert->peer_pkeys[SSL_PKEY_ECC].x509);
1374#endif
1375 /* else anonymous ECDH, so no certificate or pkey. */
1376 EC_KEY_set_public_key(ecdh, srvr_ecpoint);
1377 s->session->sess_cert->peer_ecdh_tmp=ecdh;
1378 ecdh=NULL;
1379 BN_CTX_free(bn_ctx);
1/* ssl/s3_clnt.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 1363 unchanged lines hidden (view full) ---

1372 else if (alg & SSL_aECDSA)
1373 pkey=X509_get_pubkey(s->session->sess_cert->peer_pkeys[SSL_PKEY_ECC].x509);
1374#endif
1375 /* else anonymous ECDH, so no certificate or pkey. */
1376 EC_KEY_set_public_key(ecdh, srvr_ecpoint);
1377 s->session->sess_cert->peer_ecdh_tmp=ecdh;
1378 ecdh=NULL;
1379 BN_CTX_free(bn_ctx);
1380 bn_ctx = NULL;
1380 EC_POINT_free(srvr_ecpoint);
1381 srvr_ecpoint = NULL;
1382 }
1383 else if (alg & SSL_kECDH)
1384 {
1385 al=SSL_AD_UNEXPECTED_MESSAGE;
1386 SSLerr(SSL_F_SSL3_GET_KEY_EXCHANGE,SSL_R_UNEXPECTED_MESSAGE);
1387 goto f_err;

--- 1378 unchanged lines hidden ---
1381 EC_POINT_free(srvr_ecpoint);
1382 srvr_ecpoint = NULL;
1383 }
1384 else if (alg & SSL_kECDH)
1385 {
1386 al=SSL_AD_UNEXPECTED_MESSAGE;
1387 SSLerr(SSL_F_SSL3_GET_KEY_EXCHANGE,SSL_R_UNEXPECTED_MESSAGE);
1388 goto f_err;

--- 1378 unchanged lines hidden ---