Remove RECORD_LAYER_set_ssl and introduce RECORD_LAYER_init
[openssl.git] / ssl / ssl_lib.c
index 9a29d9c60a6c0c5659651044e4b30c037f79b9db..892f2e3383f2339e4960b1de89635efbb54acff1 100644 (file)
@@ -282,9 +282,7 @@ SSL *SSL_new(SSL_CTX *ctx)
         goto err;
     memset(s, 0, sizeof(SSL));
 
-    RECORD_LAYER_set_ssl(&s->rlayer, s);
-    SSL3_RECORD_clear(RECORD_LAYER_get_rrec(&s->rlayer));
-    SSL3_RECORD_clear(RECORD_LAYER_get_wrec(&s->rlayer));
+    RECORD_LAYER_init(&s->rlayer, s);
 
 #ifndef OPENSSL_NO_KRB5
     s->kssl_ctx = kssl_ctx_new();