Deleted Added
full compact
s2_clnt.c (63249) s2_clnt.c (68654)
1/* ssl/s2_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 *

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

50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 *
1/* ssl/s2_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 *

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

50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 *
58 * $FreeBSD: head/crypto/openssl/ssl/s2_clnt.c 59194 2000-04-13 07:15:03Z kris $
58 * $FreeBSD: head/crypto/openssl/ssl/s2_clnt.c 68654 2000-11-13 02:20:29Z kris $
59 */
60
61#include "ssl_locl.h"
62#ifndef NO_SSL2
63#include <stdio.h>
64#include <openssl/rand.h>
65#include <openssl/buffer.h>
66#include <openssl/objects.h>

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

917
918 i=ssl_verify_cert_chain(s,sk);
919
920 if ((s->verify_mode != SSL_VERIFY_NONE) && (!i))
921 {
922 SSLerr(SSL_F_SSL2_SET_CERTIFICATE,SSL_R_CERTIFICATE_VERIFY_FAILED);
923 goto err;
924 }
59 */
60
61#include "ssl_locl.h"
62#ifndef NO_SSL2
63#include <stdio.h>
64#include <openssl/rand.h>
65#include <openssl/buffer.h>
66#include <openssl/objects.h>

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

917
918 i=ssl_verify_cert_chain(s,sk);
919
920 if ((s->verify_mode != SSL_VERIFY_NONE) && (!i))
921 {
922 SSLerr(SSL_F_SSL2_SET_CERTIFICATE,SSL_R_CERTIFICATE_VERIFY_FAILED);
923 goto err;
924 }
925 ERR_clear_error(); /* but we keep s->verify_result */
925
926 /* server's cert for this session */
927 sc=ssl_sess_cert_new();
928 if (sc == NULL)
929 {
930 ret= -1;
931 goto err;
932 }

--- 62 unchanged lines hidden ---
926
927 /* server's cert for this session */
928 sc=ssl_sess_cert_new();
929 if (sc == NULL)
930 {
931 ret= -1;
932 goto err;
933 }

--- 62 unchanged lines hidden ---