summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-03-01 11:08:37 +0000
committertb <>2023-03-01 11:08:37 +0000
commit570f472a828e4bb99852360fc02874847bbe787a (patch)
tree150cfd84783cae0da91c9386cd78544ac7512a1d /src/lib
parentb3957f0a1e3340c7099af2ad004de73ff57d4709 (diff)
downloadopenbsd-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.c23
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
117int 117int
118EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, 118EVP_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
128int 126int
129EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, 127EVP_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
147int 143int
148EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, 144EVP_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
156int 151int
157EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, 152EVP_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
165int 159int
166EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, 160EVP_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;