summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2014-07-10 22:13:39 +0000
committerjsing <>2014-07-10 22:13:39 +0000
commit81b6b7632b2207a2dbd7b6d803912ee3779176aa (patch)
treeb7aa6149183ff4eb11170b7702c48aa27fda6e48
parent69d6ecdeec2fa30f31701826fda6efe8c1a11732 (diff)
downloadopenbsd-81b6b7632b2207a2dbd7b6d803912ee3779176aa.tar.gz
openbsd-81b6b7632b2207a2dbd7b6d803912ee3779176aa.tar.bz2
openbsd-81b6b7632b2207a2dbd7b6d803912ee3779176aa.zip
OPENSSL_stderr() is unused so nuke it. OPENSSL_showfatal() is only used by
OpenSSLDie(), which is in the same file, so just make it static. ok miod@
-rw-r--r--src/lib/libcrypto/cryptlib.c11
-rw-r--r--src/lib/libcrypto/cryptlib.h4
-rw-r--r--src/lib/libssl/src/crypto/cryptlib.c11
-rw-r--r--src/lib/libssl/src/crypto/cryptlib.h4
4 files changed, 6 insertions, 24 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c
index 86f51917e2..75d66d4ee9 100644
--- a/src/lib/libcrypto/cryptlib.c
+++ b/src/lib/libcrypto/cryptlib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cryptlib.c,v 1.29 2014/07/10 20:02:58 jsing Exp $ */ 1/* $OpenBSD: cryptlib.c,v 1.30 2014/07/10 22:13:39 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -688,8 +688,7 @@ OPENSSL_cpuid_setup(void)
688} 688}
689#endif 689#endif
690 690
691 691static void
692void
693OPENSSL_showfatal(const char *fmta, ...) 692OPENSSL_showfatal(const char *fmta, ...)
694{ 693{
695 va_list ap; 694 va_list ap;
@@ -708,12 +707,6 @@ OpenSSLDie(const char *file, int line, const char *assertion)
708 abort(); 707 abort();
709} 708}
710 709
711void *
712OPENSSL_stderr(void)
713{
714 return stderr;
715}
716
717int 710int
718CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) 711CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len)
719{ 712{
diff --git a/src/lib/libcrypto/cryptlib.h b/src/lib/libcrypto/cryptlib.h
index ad669a2745..679af821c1 100644
--- a/src/lib/libcrypto/cryptlib.h
+++ b/src/lib/libcrypto/cryptlib.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cryptlib.h,v 1.22 2014/07/10 20:42:45 jsing Exp $ */ 1/* $OpenBSD: cryptlib.h,v 1.23 2014/07/10 22:13:39 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -78,8 +78,6 @@ extern "C" {
78 78
79void OPENSSL_cpuid_setup(void); 79void OPENSSL_cpuid_setup(void);
80extern unsigned int OPENSSL_ia32cap_P[]; 80extern unsigned int OPENSSL_ia32cap_P[];
81void OPENSSL_showfatal(const char *fmta,...);
82void *OPENSSL_stderr(void);
83 81
84#ifdef __cplusplus 82#ifdef __cplusplus
85} 83}
diff --git a/src/lib/libssl/src/crypto/cryptlib.c b/src/lib/libssl/src/crypto/cryptlib.c
index 86f51917e2..75d66d4ee9 100644
--- a/src/lib/libssl/src/crypto/cryptlib.c
+++ b/src/lib/libssl/src/crypto/cryptlib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cryptlib.c,v 1.29 2014/07/10 20:02:58 jsing Exp $ */ 1/* $OpenBSD: cryptlib.c,v 1.30 2014/07/10 22:13:39 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -688,8 +688,7 @@ OPENSSL_cpuid_setup(void)
688} 688}
689#endif 689#endif
690 690
691 691static void
692void
693OPENSSL_showfatal(const char *fmta, ...) 692OPENSSL_showfatal(const char *fmta, ...)
694{ 693{
695 va_list ap; 694 va_list ap;
@@ -708,12 +707,6 @@ OpenSSLDie(const char *file, int line, const char *assertion)
708 abort(); 707 abort();
709} 708}
710 709
711void *
712OPENSSL_stderr(void)
713{
714 return stderr;
715}
716
717int 710int
718CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) 711CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len)
719{ 712{
diff --git a/src/lib/libssl/src/crypto/cryptlib.h b/src/lib/libssl/src/crypto/cryptlib.h
index ad669a2745..679af821c1 100644
--- a/src/lib/libssl/src/crypto/cryptlib.h
+++ b/src/lib/libssl/src/crypto/cryptlib.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: cryptlib.h,v 1.22 2014/07/10 20:42:45 jsing Exp $ */ 1/* $OpenBSD: cryptlib.h,v 1.23 2014/07/10 22:13:39 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -78,8 +78,6 @@ extern "C" {
78 78
79void OPENSSL_cpuid_setup(void); 79void OPENSSL_cpuid_setup(void);
80extern unsigned int OPENSSL_ia32cap_P[]; 80extern unsigned int OPENSSL_ia32cap_P[];
81void OPENSSL_showfatal(const char *fmta,...);
82void *OPENSSL_stderr(void);
83 81
84#ifdef __cplusplus 82#ifdef __cplusplus
85} 83}