diff options
author | jsing <> | 2019-08-11 06:47:18 +0000 |
---|---|---|
committer | jsing <> | 2019-08-11 06:47:18 +0000 |
commit | 1c1579ab04dc58affcb00621bf4860581d8a70e1 (patch) | |
tree | b9cba39135a68c2035bf0ff4d36845b6904da479 | |
parent | cc47a3abfdbd325bb89055dfd451213698f0850e (diff) | |
download | openbsd-1c1579ab04dc58affcb00621bf4860581d8a70e1.tar.gz openbsd-1c1579ab04dc58affcb00621bf4860581d8a70e1.tar.bz2 openbsd-1c1579ab04dc58affcb00621bf4860581d8a70e1.zip |
Unlike OpenSSL we do not have our own special ssize_t.
-rw-r--r-- | src/lib/libcrypto/cms/cms.h | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/cms/cms_pwri.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/cms/cms_smime.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/cms/cms.h b/src/lib/libcrypto/cms/cms.h index b524cd7c9c..ecb516b203 100644 --- a/src/lib/libcrypto/cms/cms.h +++ b/src/lib/libcrypto/cms/cms.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms.h,v 1.12 2019/08/10 18:24:33 jsing Exp $ */ | 1 | /* $OpenBSD: cms.h,v 1.13 2019/08/11 06:47:18 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -184,7 +184,7 @@ int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert); | |||
184 | int CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, | 184 | int CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, |
185 | size_t keylen, const unsigned char *id, size_t idlen); | 185 | size_t keylen, const unsigned char *id, size_t idlen); |
186 | int CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, | 186 | int CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, |
187 | ossl_ssize_t passlen); | 187 | ssize_t passlen); |
188 | 188 | ||
189 | STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms); | 189 | STACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms); |
190 | int CMS_RecipientInfo_type(CMS_RecipientInfo *ri); | 190 | int CMS_RecipientInfo_type(CMS_RecipientInfo *ri); |
@@ -214,10 +214,10 @@ int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri, | |||
214 | const unsigned char *id, size_t idlen); | 214 | const unsigned char *id, size_t idlen); |
215 | 215 | ||
216 | int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, unsigned char *pass, | 216 | int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, unsigned char *pass, |
217 | ossl_ssize_t passlen); | 217 | ssize_t passlen); |
218 | 218 | ||
219 | CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, | 219 | CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, |
220 | int wrap_nid, int pbe_nid, unsigned char *pass, ossl_ssize_t passlen, | 220 | int wrap_nid, int pbe_nid, unsigned char *pass, ssize_t passlen, |
221 | const EVP_CIPHER *kekciph); | 221 | const EVP_CIPHER *kekciph); |
222 | 222 | ||
223 | int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri); | 223 | int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri); |
diff --git a/src/lib/libcrypto/cms/cms_pwri.c b/src/lib/libcrypto/cms/cms_pwri.c index af237be98f..bbad379dff 100644 --- a/src/lib/libcrypto/cms/cms_pwri.c +++ b/src/lib/libcrypto/cms/cms_pwri.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_pwri.c,v 1.17 2019/08/10 18:15:52 jsing Exp $ */ | 1 | /* $OpenBSD: cms_pwri.c,v 1.18 2019/08/11 06:47:18 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | int | 66 | int |
67 | CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, unsigned char *pass, | 67 | CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, unsigned char *pass, |
68 | ossl_ssize_t passlen) | 68 | ssize_t passlen) |
69 | { | 69 | { |
70 | CMS_PasswordRecipientInfo *pwri; | 70 | CMS_PasswordRecipientInfo *pwri; |
71 | 71 | ||
@@ -85,7 +85,7 @@ CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, unsigned char *pass, | |||
85 | 85 | ||
86 | CMS_RecipientInfo * | 86 | CMS_RecipientInfo * |
87 | CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, | 87 | CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, |
88 | int pbe_nid, unsigned char *pass, ossl_ssize_t passlen, | 88 | int pbe_nid, unsigned char *pass, ssize_t passlen, |
89 | const EVP_CIPHER *kekciph) | 89 | const EVP_CIPHER *kekciph) |
90 | { | 90 | { |
91 | CMS_RecipientInfo *ri = NULL; | 91 | CMS_RecipientInfo *ri = NULL; |
diff --git a/src/lib/libcrypto/cms/cms_smime.c b/src/lib/libcrypto/cms/cms_smime.c index a4a77b916a..6e546593e7 100644 --- a/src/lib/libcrypto/cms/cms_smime.c +++ b/src/lib/libcrypto/cms/cms_smime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_smime.c,v 1.20 2019/08/10 18:15:52 jsing Exp $ */ | 1 | /* $OpenBSD: cms_smime.c,v 1.21 2019/08/11 06:47:18 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -786,7 +786,7 @@ CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, size_t keylen, | |||
786 | 786 | ||
787 | int | 787 | int |
788 | CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, | 788 | CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, |
789 | ossl_ssize_t passlen) | 789 | ssize_t passlen) |
790 | { | 790 | { |
791 | STACK_OF(CMS_RecipientInfo) *ris; | 791 | STACK_OF(CMS_RecipientInfo) *ris; |
792 | CMS_RecipientInfo *ri; | 792 | CMS_RecipientInfo *ri; |