From: Richard Levitte Date: Wed, 7 Feb 2018 18:56:57 +0000 (+0100) Subject: Make all private functions in e_afalg.c static X-Git-Tag: OpenSSL_1_1_0h~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db5ec96acd4e65bca886f2ef09316a7fb0aa8cac;p=oweals%2Fopenssl.git Make all private functions in e_afalg.c static Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/5273) --- diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c index 20ac978846..05ad905991 100644 --- a/engines/afalg/e_afalg.c +++ b/engines/afalg/e_afalg.c @@ -80,7 +80,7 @@ static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype, static int afalg_destroy(ENGINE *e); static int afalg_init(ENGINE *e); static int afalg_finish(ENGINE *e); -const EVP_CIPHER *afalg_aes_128_cbc(void); +static const EVP_CIPHER *afalg_aes_128_cbc(void); static int afalg_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid); static int afalg_cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, @@ -191,7 +191,7 @@ static int afalg_setup_async_event_notification(afalg_aio *aio) return 1; } -int afalg_init_aio(afalg_aio *aio) +static int afalg_init_aio(afalg_aio *aio) { int r = -1; @@ -211,8 +211,8 @@ int afalg_init_aio(afalg_aio *aio) return 1; } -int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf, - size_t len) +static int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf, + size_t len) { int r; int retry = 0; @@ -639,7 +639,7 @@ static int afalg_cipher_cleanup(EVP_CIPHER_CTX *ctx) return 1; } -const EVP_CIPHER *afalg_aes_128_cbc(void) +static const EVP_CIPHER *afalg_aes_128_cbc(void) { if (_hidden_aes_128_cbc == NULL && ((_hidden_aes_128_cbc =