0c994d54af
Currently, there are two different directories which contain internal header files of libcrypto which are meant to be shared internally: While header files in 'include/internal' are intended to be shared between libcrypto and libssl, the files in 'crypto/include/internal' are intended to be shared inside libcrypto only. To make things complicated, the include search path is set up in such a way that the directive #include "internal/file.h" could refer to a file in either of these two directoroes. This makes it necessary in some cases to add a '_int.h' suffix to some files to resolve this ambiguity: #include "internal/file.h" # located in 'include/internal' #include "internal/file_int.h" # located in 'crypto/include/internal' This commit moves the private crypto headers from 'crypto/include/internal' to 'include/crypto' As a result, the include directives become unambiguous #include "internal/file.h" # located in 'include/internal' #include "crypto/file.h" # located in 'include/crypto' hence the superfluous '_int.h' suffixes can be stripped. The files 'store_int.h' and 'store.h' need to be treated specially; they are joined into a single file. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9681)
60 lines
1.8 KiB
C
60 lines
1.8 KiB
C
/*
|
|
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "internal/cryptlib.h"
|
|
#include <openssl/evp.h>
|
|
#include "crypto/evp.h"
|
|
#include <openssl/pkcs12.h>
|
|
#include <openssl/objects.h>
|
|
|
|
void openssl_add_all_digests_int(void)
|
|
{
|
|
#ifndef OPENSSL_NO_MD4
|
|
EVP_add_digest(EVP_md4());
|
|
#endif
|
|
#ifndef OPENSSL_NO_MD5
|
|
EVP_add_digest(EVP_md5());
|
|
EVP_add_digest_alias(SN_md5, "ssl3-md5");
|
|
EVP_add_digest(EVP_md5_sha1());
|
|
#endif
|
|
EVP_add_digest(EVP_sha1());
|
|
EVP_add_digest_alias(SN_sha1, "ssl3-sha1");
|
|
EVP_add_digest_alias(SN_sha1WithRSAEncryption, SN_sha1WithRSA);
|
|
#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DES)
|
|
EVP_add_digest(EVP_mdc2());
|
|
#endif
|
|
#ifndef OPENSSL_NO_RMD160
|
|
EVP_add_digest(EVP_ripemd160());
|
|
EVP_add_digest_alias(SN_ripemd160, "ripemd");
|
|
EVP_add_digest_alias(SN_ripemd160, "rmd160");
|
|
#endif
|
|
EVP_add_digest(EVP_sha224());
|
|
EVP_add_digest(EVP_sha256());
|
|
EVP_add_digest(EVP_sha384());
|
|
EVP_add_digest(EVP_sha512());
|
|
EVP_add_digest(EVP_sha512_224());
|
|
EVP_add_digest(EVP_sha512_256());
|
|
#ifndef OPENSSL_NO_WHIRLPOOL
|
|
EVP_add_digest(EVP_whirlpool());
|
|
#endif
|
|
#ifndef OPENSSL_NO_SM3
|
|
EVP_add_digest(EVP_sm3());
|
|
#endif
|
|
#ifndef OPENSSL_NO_BLAKE2
|
|
EVP_add_digest(EVP_blake2b512());
|
|
EVP_add_digest(EVP_blake2s256());
|
|
#endif
|
|
EVP_add_digest(EVP_sha3_224());
|
|
EVP_add_digest(EVP_sha3_256());
|
|
EVP_add_digest(EVP_sha3_384());
|
|
EVP_add_digest(EVP_sha3_512());
|
|
EVP_add_digest(EVP_shake128());
|
|
EVP_add_digest(EVP_shake256());
|
|
}
|