ssl_sess.c (100928) | ssl_sess.c (100936) |
---|---|
1/* ssl/ssl_sess.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 * --- 46 unchanged lines hidden (view full) --- 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58 59#include <stdio.h> 60#include <openssl/lhash.h> 61#include <openssl/rand.h> 62#include "ssl_locl.h" | 1/* ssl/ssl_sess.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 * --- 46 unchanged lines hidden (view full) --- 55 * copied and put under another distribution licence 56 * [including the GNU Public Licence.] 57 */ 58 59#include <stdio.h> 60#include <openssl/lhash.h> 61#include <openssl/rand.h> 62#include "ssl_locl.h" |
63#include "cryptlib.h" |
|
63 64static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); 65static void SSL_SESSION_list_add(SSL_CTX *ctx,SSL_SESSION *s); 66static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck); 67static int ssl_session_num=0; 68static STACK_OF(CRYPTO_EX_DATA_FUNCS) *ssl_session_meth=NULL; 69 70SSL_SESSION *SSL_get_session(SSL *ssl) --- 123 unchanged lines hidden (view full) --- 194 */ 195 } 196 } 197 else 198 { 199 ss->session_id_length=0; 200 } 201 | 64 65static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); 66static void SSL_SESSION_list_add(SSL_CTX *ctx,SSL_SESSION *s); 67static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck); 68static int ssl_session_num=0; 69static STACK_OF(CRYPTO_EX_DATA_FUNCS) *ssl_session_meth=NULL; 70 71SSL_SESSION *SSL_get_session(SSL *ssl) --- 123 unchanged lines hidden (view full) --- 195 */ 196 } 197 } 198 else 199 { 200 ss->session_id_length=0; 201 } 202 |
203 die(s->sid_ctx_length <= sizeof ss->sid_ctx); |
|
202 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length); 203 ss->sid_ctx_length=s->sid_ctx_length; 204 s->session=ss; 205 ss->ssl_version=s->version; 206 ss->verify_result = X509_V_OK; 207 208 return(1); 209 } --- 472 unchanged lines hidden --- | 204 memcpy(ss->sid_ctx,s->sid_ctx,s->sid_ctx_length); 205 ss->sid_ctx_length=s->sid_ctx_length; 206 s->session=ss; 207 ss->ssl_version=s->version; 208 ss->verify_result = X509_V_OK; 209 210 return(1); 211 } --- 472 unchanged lines hidden --- |