diff options
| author | Greg Hudson <ghudson@mit.edu> | 2011-03-05 14:00:38 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2011-03-05 14:00:38 +0000 |
| commit | 41cad8f7218c9c1c9356be626d0eb88e0a5b772a (patch) | |
| tree | 3b6d7ae0f2e308bfc7c84f78e2030d728836a633 /src/lib/crypto/openssl/enc_provider | |
| parent | 46408af6a4436e57747c89deb364415c51a5c5c5 (diff) | |
| download | krb5-41cad8f7218c9c1c9356be626d0eb88e0a5b772a.tar.gz krb5-41cad8f7218c9c1c9356be626d0eb88e0a5b772a.tar.xz krb5-41cad8f7218c9c1c9356be626d0eb88e0a5b772a.zip | |
Make enc provider free_state function return void
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24682 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/openssl/enc_provider')
| -rw-r--r-- | src/lib/crypto/openssl/enc_provider/rc4.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/lib/crypto/openssl/enc_provider/rc4.c b/src/lib/crypto/openssl/enc_provider/rc4.c index 73e25bc7a8..2ae4a84f19 100644 --- a/src/lib/crypto/openssl/enc_provider/rc4.c +++ b/src/lib/crypto/openssl/enc_provider/rc4.c @@ -53,14 +53,7 @@ struct arcfour_state { #define RC4_KEY_SIZE 16 #define RC4_BLOCK_SIZE 1 -/* Interface layer to kerb5 crypto layer */ - -/* prototypes */ -static krb5_error_code -k5_arcfour_free_state ( krb5_data *state); -static krb5_error_code -k5_arcfour_init_state (const krb5_keyblock *key, - krb5_keyusage keyusage, krb5_data *new_state); +/* Interface layer to krb5 crypto layer */ /* The workhorse of the arcfour system, * this impliments the cipher @@ -119,8 +112,8 @@ k5_arcfour_docrypt(krb5_key key,const krb5_data *state, krb5_crypto_iov *data, return 0; } -static krb5_error_code -k5_arcfour_free_state ( krb5_data *state) +static void +k5_arcfour_free_state(krb5_data *state) { struct arcfour_state *arcstate = (struct arcfour_state *) state->data; @@ -128,12 +121,11 @@ k5_arcfour_free_state ( krb5_data *state) if (arcstate && arcstate->loopback == arcstate) EVP_CIPHER_CTX_cleanup(&arcstate->ctx); free(arcstate); - return 0; } static krb5_error_code -k5_arcfour_init_state (const krb5_keyblock *key, - krb5_keyusage keyusage, krb5_data *new_state) +k5_arcfour_init_state(const krb5_keyblock *key, + krb5_keyusage keyusage, krb5_data *new_state) { struct arcfour_state *arcstate; |
