diff options
author | tb <> | 2023-03-01 11:08:37 +0000 |
---|---|---|
committer | tb <> | 2023-03-01 11:08:37 +0000 |
commit | 570f472a828e4bb99852360fc02874847bbe787a (patch) | |
tree | 150cfd84783cae0da91c9386cd78544ac7512a1d /src/lib | |
parent | b3957f0a1e3340c7099af2ad004de73ff57d4709 (diff) | |
download | openbsd-570f472a828e4bb99852360fc02874847bbe787a.tar.gz openbsd-570f472a828e4bb99852360fc02874847bbe787a.tar.bz2 openbsd-570f472a828e4bb99852360fc02874847bbe787a.zip |
Fix line wrapping of function pointer arguments
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/evp/cipher_method_lib.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/lib/libcrypto/evp/cipher_method_lib.c b/src/lib/libcrypto/evp/cipher_method_lib.c index 760e0e8557..a0b2830efa 100644 --- a/src/lib/libcrypto/evp/cipher_method_lib.c +++ b/src/lib/libcrypto/evp/cipher_method_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher_method_lib.c,v 1.5 2023/03/01 11:07:25 tb Exp $ */ | 1 | /* $OpenBSD: cipher_method_lib.c,v 1.6 2023/03/01 11:08:37 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project | 3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project |
4 | * 2015. | 4 | * 2015. |
@@ -116,10 +116,8 @@ EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) | |||
116 | 116 | ||
117 | int | 117 | int |
118 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | 118 | EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, |
119 | int (*init)(EVP_CIPHER_CTX *ctx, | 119 | int (*init)(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
120 | const unsigned char *key, | 120 | const unsigned char *iv, int enc)) |
121 | const unsigned char *iv, | ||
122 | int enc)) | ||
123 | { | 121 | { |
124 | cipher->init = init; | 122 | cipher->init = init; |
125 | return 1; | 123 | return 1; |
@@ -127,10 +125,8 @@ EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, | |||
127 | 125 | ||
128 | int | 126 | int |
129 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, | 127 | EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, |
130 | int (*do_cipher)(EVP_CIPHER_CTX *ctx, | 128 | int (*do_cipher)(EVP_CIPHER_CTX *ctx, unsigned char *out, |
131 | unsigned char *out, | 129 | const unsigned char *in, size_t inl)) |
132 | const unsigned char *in, | ||
133 | size_t inl)) | ||
134 | { | 130 | { |
135 | cipher->do_cipher = do_cipher; | 131 | cipher->do_cipher = do_cipher; |
136 | return 1; | 132 | return 1; |
@@ -146,8 +142,7 @@ EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, | |||
146 | 142 | ||
147 | int | 143 | int |
148 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | 144 | EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, |
149 | int (*set_asn1_parameters)(EVP_CIPHER_CTX *, | 145 | int (*set_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *)) |
150 | ASN1_TYPE *)) | ||
151 | { | 146 | { |
152 | cipher->set_asn1_parameters = set_asn1_parameters; | 147 | cipher->set_asn1_parameters = set_asn1_parameters; |
153 | return 1; | 148 | return 1; |
@@ -155,8 +150,7 @@ EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, | |||
155 | 150 | ||
156 | int | 151 | int |
157 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | 152 | EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, |
158 | int (*get_asn1_parameters)(EVP_CIPHER_CTX *, | 153 | int (*get_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *)) |
159 | ASN1_TYPE *)) | ||
160 | { | 154 | { |
161 | cipher->get_asn1_parameters = get_asn1_parameters; | 155 | cipher->get_asn1_parameters = get_asn1_parameters; |
162 | return 1; | 156 | return 1; |
@@ -164,8 +158,7 @@ EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, | |||
164 | 158 | ||
165 | int | 159 | int |
166 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | 160 | EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, |
167 | int (*ctrl)(EVP_CIPHER_CTX *, int type, | 161 | int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr)) |
168 | int arg, void *ptr)) | ||
169 | { | 162 | { |
170 | cipher->ctrl = ctrl; | 163 | cipher->ctrl = ctrl; |
171 | return 1; | 164 | return 1; |