diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index a75a63b03b..7904a7d670 100644 --- a/src/lib/libcrypto/x509/x509cset.c +++ b/src/lib/libcrypto/x509/x509cset.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509cset.c,v 1.18 2022/11/26 16:08:55 tb Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.19 2023/02/16 08:38:17 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -71,7 +71,7 @@ X509_CRL_up_ref(X509_CRL *x) | |||
| 71 | int refs = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); | 71 | int refs = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); |
| 72 | return (refs > 1) ? 1 : 0; | 72 | return (refs > 1) ? 1 : 0; |
| 73 | } | 73 | } |
| 74 | LCRYPTO_ALIAS(X509_CRL_up_ref) | 74 | LCRYPTO_ALIAS(X509_CRL_up_ref); |
| 75 | 75 | ||
| 76 | int | 76 | int |
| 77 | X509_CRL_set_version(X509_CRL *x, long version) | 77 | X509_CRL_set_version(X509_CRL *x, long version) |
| @@ -84,7 +84,7 @@ X509_CRL_set_version(X509_CRL *x, long version) | |||
| 84 | } | 84 | } |
| 85 | return (ASN1_INTEGER_set(x->crl->version, version)); | 85 | return (ASN1_INTEGER_set(x->crl->version, version)); |
| 86 | } | 86 | } |
| 87 | LCRYPTO_ALIAS(X509_CRL_set_version) | 87 | LCRYPTO_ALIAS(X509_CRL_set_version); |
| 88 | 88 | ||
| 89 | int | 89 | int |
| 90 | X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name) | 90 | X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name) |
| @@ -93,7 +93,7 @@ X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name) | |||
| 93 | return (0); | 93 | return (0); |
| 94 | return (X509_NAME_set(&x->crl->issuer, name)); | 94 | return (X509_NAME_set(&x->crl->issuer, name)); |
| 95 | } | 95 | } |
| 96 | LCRYPTO_ALIAS(X509_CRL_set_issuer_name) | 96 | LCRYPTO_ALIAS(X509_CRL_set_issuer_name); |
| 97 | 97 | ||
| 98 | int | 98 | int |
| 99 | X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) | 99 | X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) |
| @@ -112,14 +112,14 @@ X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) | |||
| 112 | } | 112 | } |
| 113 | return (in != NULL); | 113 | return (in != NULL); |
| 114 | } | 114 | } |
| 115 | LCRYPTO_ALIAS(X509_CRL_set_lastUpdate) | 115 | LCRYPTO_ALIAS(X509_CRL_set_lastUpdate); |
| 116 | 116 | ||
| 117 | int | 117 | int |
| 118 | X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) | 118 | X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) |
| 119 | { | 119 | { |
| 120 | return X509_CRL_set_lastUpdate(x, tm); | 120 | return X509_CRL_set_lastUpdate(x, tm); |
| 121 | } | 121 | } |
| 122 | LCRYPTO_ALIAS(X509_CRL_set1_lastUpdate) | 122 | LCRYPTO_ALIAS(X509_CRL_set1_lastUpdate); |
| 123 | 123 | ||
| 124 | int | 124 | int |
| 125 | X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | 125 | X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) |
| @@ -138,14 +138,14 @@ X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | |||
| 138 | } | 138 | } |
| 139 | return (in != NULL); | 139 | return (in != NULL); |
| 140 | } | 140 | } |
| 141 | LCRYPTO_ALIAS(X509_CRL_set_nextUpdate) | 141 | LCRYPTO_ALIAS(X509_CRL_set_nextUpdate); |
| 142 | 142 | ||
| 143 | int | 143 | int |
| 144 | X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | 144 | X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) |
| 145 | { | 145 | { |
| 146 | return X509_CRL_set_nextUpdate(x, tm); | 146 | return X509_CRL_set_nextUpdate(x, tm); |
| 147 | } | 147 | } |
| 148 | LCRYPTO_ALIAS(X509_CRL_set1_nextUpdate) | 148 | LCRYPTO_ALIAS(X509_CRL_set1_nextUpdate); |
| 149 | 149 | ||
| 150 | int | 150 | int |
| 151 | X509_CRL_sort(X509_CRL *c) | 151 | X509_CRL_sort(X509_CRL *c) |
| @@ -163,28 +163,28 @@ X509_CRL_sort(X509_CRL *c) | |||
| 163 | c->crl->enc.modified = 1; | 163 | c->crl->enc.modified = 1; |
| 164 | return 1; | 164 | return 1; |
| 165 | } | 165 | } |
| 166 | LCRYPTO_ALIAS(X509_CRL_sort) | 166 | LCRYPTO_ALIAS(X509_CRL_sort); |
| 167 | 167 | ||
| 168 | const STACK_OF(X509_EXTENSION) * | 168 | const STACK_OF(X509_EXTENSION) * |
| 169 | X509_REVOKED_get0_extensions(const X509_REVOKED *x) | 169 | X509_REVOKED_get0_extensions(const X509_REVOKED *x) |
| 170 | { | 170 | { |
| 171 | return x->extensions; | 171 | return x->extensions; |
| 172 | } | 172 | } |
| 173 | LCRYPTO_ALIAS(X509_REVOKED_get0_extensions) | 173 | LCRYPTO_ALIAS(X509_REVOKED_get0_extensions); |
| 174 | 174 | ||
| 175 | const ASN1_TIME * | 175 | const ASN1_TIME * |
| 176 | X509_REVOKED_get0_revocationDate(const X509_REVOKED *x) | 176 | X509_REVOKED_get0_revocationDate(const X509_REVOKED *x) |
| 177 | { | 177 | { |
| 178 | return x->revocationDate; | 178 | return x->revocationDate; |
| 179 | } | 179 | } |
| 180 | LCRYPTO_ALIAS(X509_REVOKED_get0_revocationDate) | 180 | LCRYPTO_ALIAS(X509_REVOKED_get0_revocationDate); |
| 181 | 181 | ||
| 182 | const ASN1_INTEGER * | 182 | const ASN1_INTEGER * |
| 183 | X509_REVOKED_get0_serialNumber(const X509_REVOKED *x) | 183 | X509_REVOKED_get0_serialNumber(const X509_REVOKED *x) |
| 184 | { | 184 | { |
| 185 | return x->serialNumber; | 185 | return x->serialNumber; |
| 186 | } | 186 | } |
| 187 | LCRYPTO_ALIAS(X509_REVOKED_get0_serialNumber) | 187 | LCRYPTO_ALIAS(X509_REVOKED_get0_serialNumber); |
| 188 | 188 | ||
| 189 | int | 189 | int |
| 190 | X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) | 190 | X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) |
| @@ -203,7 +203,7 @@ X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) | |||
| 203 | } | 203 | } |
| 204 | return (in != NULL); | 204 | return (in != NULL); |
| 205 | } | 205 | } |
| 206 | LCRYPTO_ALIAS(X509_REVOKED_set_revocationDate) | 206 | LCRYPTO_ALIAS(X509_REVOKED_set_revocationDate); |
| 207 | 207 | ||
| 208 | int | 208 | int |
| 209 | X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) | 209 | X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) |
| @@ -222,7 +222,7 @@ X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) | |||
| 222 | } | 222 | } |
| 223 | return (in != NULL); | 223 | return (in != NULL); |
| 224 | } | 224 | } |
| 225 | LCRYPTO_ALIAS(X509_REVOKED_set_serialNumber) | 225 | LCRYPTO_ALIAS(X509_REVOKED_set_serialNumber); |
| 226 | 226 | ||
| 227 | int | 227 | int |
| 228 | i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **pp) | 228 | i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **pp) |
| @@ -230,4 +230,4 @@ i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **pp) | |||
| 230 | crl->crl->enc.modified = 1; | 230 | crl->crl->enc.modified = 1; |
| 231 | return i2d_X509_CRL_INFO(crl->crl, pp); | 231 | return i2d_X509_CRL_INFO(crl->crl, pp); |
| 232 | } | 232 | } |
| 233 | LCRYPTO_ALIAS(i2d_re_X509_CRL_tbs) | 233 | LCRYPTO_ALIAS(i2d_re_X509_CRL_tbs); |
