X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbio%2Fbss_null.c;h=08f1d2bc98a37d35c64dc9c0e2ecb937e2b8c507;hb=f06080cb3da93e99755edb5f19e7ccc132aeba36;hp=13982c085189489c153eb074c0b6301ffaf137a7;hpb=26a7d938c9bf932a55cb5e4e02abb48fe395c5cd;p=oweals%2Fopenssl.git diff --git a/crypto/bio/bss_null.c b/crypto/bio/bss_null.c index 13982c0851..08f1d2bc98 100644 --- a/crypto/bio/bss_null.c +++ b/crypto/bio/bss_null.c @@ -1,5 +1,5 @@ /* - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -17,8 +17,6 @@ static int null_read(BIO *h, char *buf, int size); static int null_puts(BIO *h, const char *str); static int null_gets(BIO *h, char *str, int size); static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2); -static int null_new(BIO *h); -static int null_free(BIO *data); static const BIO_METHOD null_method = { BIO_TYPE_NULL, "NULL", @@ -31,9 +29,9 @@ static const BIO_METHOD null_method = { null_puts, null_gets, null_ctrl, - null_new, - null_free, NULL, + NULL, + NULL, /* null_callback_ctrl */ }; const BIO_METHOD *BIO_s_null(void) @@ -41,21 +39,6 @@ const BIO_METHOD *BIO_s_null(void) return &null_method; } -static int null_new(BIO *bi) -{ - bi->init = 1; - bi->num = 0; - bi->ptr = (NULL); - return 1; -} - -static int null_free(BIO *a) -{ - if (a == NULL) - return 0; - return 1; -} - static int null_read(BIO *b, char *out, int outl) { return 0;