memset(ss->key_arg,0,SSL_MAX_KEY_ARG_LENGTH); memset(ss->master_key,0,SSL_MAX_MASTER_KEY_LENGTH); memset(ss->session_id,0,SSL_MAX_SSL_SESSION_ID_LENGTH);
memset(ss->key_arg,0,sizeof ss->key_arg); memset(ss->master_key,0,sizeof ss->master_key); memset(ss->session_id,0,sizeof ss->session_id);
void SSL_SESSION_free(SSL_SESSION *ss)	{	int i;	if(ss == NULL)	    return;	i=CRYPTO_add(&ss->references,-1,CRYPTO_LOCK_SSL_SESSION);#ifdef REF_PRINT	REF_PRINT("SSL_SESSION",ss);#endif	if (i > 0) return;#ifdef REF_CHECK	if (i < 0)		{		fprintf(stderr,"SSL_SESSION_free, bad reference count\n");		abort(); /* ok */		}#endif	CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data);	memset(ss->key_arg,0,SSL_MAX_KEY_ARG_LENGTH);	memset(ss->master_key,0,SSL_MAX_MASTER_KEY_LENGTH);	memset(ss->session_id,0,SSL_MAX_SSL_SESSION_ID_LENGTH);	if (ss->sess_cert != NULL) ssl_sess_cert_free(ss->sess_cert);	if (ss->peer != NULL) X509_free(ss->peer);	if (ss->ciphers != NULL) sk_SSL_CIPHER_free(ss->ciphers);	memset(ss,0,sizeof(*ss));	OPENSSL_free(ss);	}