diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_null.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_null.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/e_null.c b/src/lib/libcrypto/evp/e_null.c index e0702cf818..2420d7e5af 100644 --- a/src/lib/libcrypto/evp/e_null.c +++ b/src/lib/libcrypto/evp/e_null.c | |||
@@ -65,7 +65,7 @@ static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | |||
65 | const unsigned char *iv,int enc); | 65 | const unsigned char *iv,int enc); |
66 | static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | 66 | static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, |
67 | const unsigned char *in, unsigned int inl); | 67 | const unsigned char *in, unsigned int inl); |
68 | static EVP_CIPHER n_cipher= | 68 | static const EVP_CIPHER n_cipher= |
69 | { | 69 | { |
70 | NID_undef, | 70 | NID_undef, |
71 | 1,0,0, | 71 | 1,0,0, |
@@ -79,7 +79,7 @@ static EVP_CIPHER n_cipher= | |||
79 | NULL | 79 | NULL |
80 | }; | 80 | }; |
81 | 81 | ||
82 | EVP_CIPHER *EVP_enc_null(void) | 82 | const EVP_CIPHER *EVP_enc_null(void) |
83 | { | 83 | { |
84 | return(&n_cipher); | 84 | return(&n_cipher); |
85 | } | 85 | } |
@@ -87,7 +87,7 @@ EVP_CIPHER *EVP_enc_null(void) | |||
87 | static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 87 | static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
88 | const unsigned char *iv, int enc) | 88 | const unsigned char *iv, int enc) |
89 | { | 89 | { |
90 | memset(&(ctx->c),0,sizeof(ctx->c)); | 90 | /* memset(&(ctx->c),0,sizeof(ctx->c));*/ |
91 | return 1; | 91 | return 1; |
92 | } | 92 | } |
93 | 93 | ||