From f092a073a75be72731e57b175d2df73d2d0eddd8 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 2 Dec 2008 18:14:44 +0000 Subject: [PATCH] Fix warnings. --- crypto/evp/enc_min.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crypto/evp/enc_min.c b/crypto/evp/enc_min.c index 0368e53236..3cb4626bef 100644 --- a/crypto/evp/enc_min.c +++ b/crypto/evp/enc_min.c @@ -81,21 +81,21 @@ void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) * algorithms in FIPS mode and ignore the errors. */ -int bad_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, - const unsigned char *iv, int enc) +static int bad_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, + const unsigned char *iv, int enc) { FIPS_ERROR_IGNORED("Cipher init"); return 0;} -int bad_do_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int inl) +static int bad_do_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, + const unsigned char *in, unsigned int inl) { FIPS_ERROR_IGNORED("Cipher update"); return 0;} /* NB: no cleanup because it is allowed after failed init */ -int bad_set_asn1(EVP_CIPHER_CTX *ctx, ASN1_TYPE *typ) +static int bad_set_asn1(EVP_CIPHER_CTX *ctx, ASN1_TYPE *typ) { FIPS_ERROR_IGNORED("Cipher set_asn1"); return 0;} -int bad_get_asn1(EVP_CIPHER_CTX *ctx, ASN1_TYPE *typ) +static int bad_get_asn1(EVP_CIPHER_CTX *ctx, ASN1_TYPE *typ) { FIPS_ERROR_IGNORED("Cipher get_asn1"); return 0;} -int bad_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) +static int bad_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) { FIPS_ERROR_IGNORED("Cipher ctrl"); return 0;} static const EVP_CIPHER bad_cipher = -- 2.25.1