From b06d97dea79680706abbabd672be9d0fb4582be7 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 29 Apr 2017 21:48:44 +0000 Subject: Stop calling OPENSSL_init() internally, since it is a no-op. Also place it under #ifndef LIBRESSL_INTERNAL. ok beck@ --- src/lib/libcrypto/evp/names.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lib/libcrypto/evp/names.c') diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index 33d7dc8084..ebaa3a2f6f 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.12 2014/07/11 08:44:48 jsing Exp $ */ +/* $OpenBSD: names.c,v 1.13 2017/04/29 21:48:44 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -70,8 +70,6 @@ EVP_add_cipher(const EVP_CIPHER *c) if (c == NULL) return 0; - OPENSSL_init(); - r = OBJ_NAME_add(OBJ_nid2sn(c->nid), OBJ_NAME_TYPE_CIPHER_METH, (const char *)c); if (r == 0) @@ -88,8 +86,6 @@ EVP_add_digest(const EVP_MD *md) int r; const char *name; - OPENSSL_init(); - name = OBJ_nid2sn(md->type); r = OBJ_NAME_add(name, OBJ_NAME_TYPE_MD_METH, (const char *)md); if (r == 0) -- cgit v1.2.3-55-g6feb