summaryrefslogtreecommitdiff
path: root/crypto/o_str.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-06-21 09:27:48 +1000
committerPauli <paul.dale@oracle.com>2019-06-21 10:03:55 +1000
commit32ee452496f8cf4558d645f9db908b09df919f04 (patch)
tree0fa688bcaff971eb4124f6142c5e4ef08482c2bb /crypto/o_str.c
parent2d905f6715453034d1f942a0237b0d2b9d57326c (diff)
downloadopenssl-new-32ee452496f8cf4558d645f9db908b09df919f04.tar.gz
Remove OPENSSL_memcmp.
After avoiding OPENSSL_memcmp for EC curve comparison, there are no remaining uses in the source code. The function is only defined in an internal header and thus should be safe to remove for 3.0.0. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/9207)
Diffstat (limited to 'crypto/o_str.c')
-rw-r--r--crypto/o_str.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c
index 0403982004..467ceb2054 100644
--- a/crypto/o_str.c
+++ b/crypto/o_str.c
@@ -11,18 +11,6 @@
#include <limits.h>
#include <openssl/crypto.h>
#include "internal/cryptlib.h"
-#include "internal/o_str.h"
-
-int OPENSSL_memcmp(const void *v1, const void *v2, size_t n)
-{
- const unsigned char *c1 = v1, *c2 = v2;
- int ret = 0;
-
- while (n && (ret = *c1 - *c2) == 0)
- n--, c1++, c2++;
-
- return ret;
-}
char *CRYPTO_strdup(const char *str, const char* file, int line)
{