diff options
Diffstat (limited to 'src/lib/libcrypto/crypto_legacy.c')
-rw-r--r-- | src/lib/libcrypto/crypto_legacy.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_legacy.c b/src/lib/libcrypto/crypto_legacy.c index 21a998bb1c..94d51e92e2 100644 --- a/src/lib/libcrypto/crypto_legacy.c +++ b/src/lib/libcrypto/crypto_legacy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_legacy.c,v 1.4 2024/11/05 11:11:29 tb Exp $ */ | 1 | /* $OpenBSD: crypto_legacy.c,v 1.5 2024/11/05 11:14:04 tb 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 | * |
@@ -123,6 +123,7 @@ | |||
123 | 123 | ||
124 | #include <openssl/opensslconf.h> | 124 | #include <openssl/opensslconf.h> |
125 | #include <openssl/crypto.h> | 125 | #include <openssl/crypto.h> |
126 | #include <openssl/err.h> | ||
126 | 127 | ||
127 | #include "crypto_internal.h" | 128 | #include "crypto_internal.h" |
128 | #include "crypto_local.h" | 129 | #include "crypto_local.h" |
@@ -385,6 +386,23 @@ CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) | |||
385 | } | 386 | } |
386 | LCRYPTO_ALIAS(CRYPTO_memcmp); | 387 | LCRYPTO_ALIAS(CRYPTO_memcmp); |
387 | 388 | ||
389 | int | ||
390 | FIPS_mode(void) | ||
391 | { | ||
392 | return 0; | ||
393 | } | ||
394 | LCRYPTO_ALIAS(FIPS_mode); | ||
395 | |||
396 | int | ||
397 | FIPS_mode_set(int r) | ||
398 | { | ||
399 | if (r == 0) | ||
400 | return 1; | ||
401 | CRYPTOerror(CRYPTO_R_FIPS_MODE_NOT_SUPPORTED); | ||
402 | return 0; | ||
403 | } | ||
404 | LCRYPTO_ALIAS(FIPS_mode_set); | ||
405 | |||
388 | const char * | 406 | const char * |
389 | SSLeay_version(int t) | 407 | SSLeay_version(int t) |
390 | { | 408 | { |