VMS support.
[openssl.git] / ssl / ssl_sess.c
index a172107bd29f3df5b8db58135ea6dd0a5ba2dd56..88d4b50c759f0e2adc30534469f09d0865970a34 100644 (file)
@@ -322,7 +322,7 @@ int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
        return remove_session_lock(ctx, c, 1);
 }
 
-int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
+static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
        {
        SSL_SESSION *r;
        int ret=0;
@@ -377,7 +377,7 @@ void SSL_SESSION_free(SSL_SESSION *ss)
        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->cert != NULL) ssl_cert_free(ss->cert);
+       if (ss->sess_cert != NULL) ssl_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));