diff options
author | miod <> | 2014-05-01 11:11:37 +0000 |
---|---|---|
committer | miod <> | 2014-05-01 11:11:37 +0000 |
commit | 7b03fe01b152af99e43b7fc69af8ce116432c5ec (patch) | |
tree | 742a52c092c1ba5efcb3093ba62e773dd11f39b9 /src/lib/libcrypto/crypto.h | |
parent | 3cd5f8038dae82ff8e027c0a63eab71ece62b0fe (diff) | |
download | openbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.tar.gz openbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.tar.bz2 openbsd-7b03fe01b152af99e43b7fc69af8ce116432c5ec.zip |
Remove fips_md_init() macro indirection for digest algorithms, used by the
OpenSSL FIPS module to prevent forbidden digests to be allowed.
No functional change but readability.
ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/crypto.h')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 11c34d8bbe..00d3cc2aae 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -533,12 +533,6 @@ int OPENSSL_isservice(void); | |||
533 | 533 | ||
534 | void OPENSSL_init(void); | 534 | void OPENSSL_init(void); |
535 | 535 | ||
536 | #define fips_md_init(alg) fips_md_init_ctx(alg, alg) | ||
537 | |||
538 | #define fips_md_init_ctx(alg, cx) \ | ||
539 | int alg##_Init(cx##_CTX *c) | ||
540 | #define fips_cipher_abort(alg) while(0) | ||
541 | |||
542 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It | 536 | /* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It |
543 | * takes an amount of time dependent on |len|, but independent of the contents | 537 | * takes an amount of time dependent on |len|, but independent of the contents |
544 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a | 538 | * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a |