diff options
author | jsing <> | 2018-02-22 17:01:44 +0000 |
---|---|---|
committer | jsing <> | 2018-02-22 17:01:44 +0000 |
commit | 6a8a8c750ccba69c261bfe0e0c3cc4d99e982304 (patch) | |
tree | 5b52b34b36124022901a9666b38c18fdb63f55f8 /src | |
parent | 8c2c77439a4e7093f11e47ff90c661fc74fc423a (diff) | |
download | openbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.tar.gz openbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.tar.bz2 openbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.zip |
Provide X509_CRL_set1_lastUpdate() and X509_CRL_set1_nextUpdate().
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 14 |
3 files changed, 18 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index a6404766db..bd821d7180 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -2668,6 +2668,8 @@ X509_CRL_match | |||
2668 | X509_CRL_new | 2668 | X509_CRL_new |
2669 | X509_CRL_print | 2669 | X509_CRL_print |
2670 | X509_CRL_print_fp | 2670 | X509_CRL_print_fp |
2671 | X509_CRL_set1_lastUpdate | ||
2672 | X509_CRL_set1_nextUpdate | ||
2671 | X509_CRL_set_default_method | 2673 | X509_CRL_set_default_method |
2672 | X509_CRL_set_issuer_name | 2674 | X509_CRL_set_issuer_name |
2673 | X509_CRL_set_lastUpdate | 2675 | X509_CRL_set_lastUpdate |
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 4f3c730a8f..906cadaea3 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.36 2018/02/22 16:58:45 jsing Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.37 2018/02/22 17:01:44 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1029,7 +1029,9 @@ int X509_REQ_add1_attr_by_txt(X509_REQ *req, | |||
1029 | int X509_CRL_set_version(X509_CRL *x, long version); | 1029 | int X509_CRL_set_version(X509_CRL *x, long version); |
1030 | int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name); | 1030 | int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name); |
1031 | int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm); | 1031 | int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm); |
1032 | int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm); | ||
1032 | int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm); | 1033 | int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm); |
1034 | int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm); | ||
1033 | int X509_CRL_sort(X509_CRL *crl); | 1035 | int X509_CRL_sort(X509_CRL *crl); |
1034 | 1036 | ||
1035 | const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(const X509_REVOKED *x); | 1037 | const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(const X509_REVOKED *x); |
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index 3fc31cd519..182dd8a954 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.13 2018/02/22 16:53:42 jsing Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.14 2018/02/22 17:01:44 jsing 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 | */ |
@@ -109,6 +109,12 @@ X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) | |||
109 | } | 109 | } |
110 | 110 | ||
111 | int | 111 | int |
112 | X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) | ||
113 | { | ||
114 | return X509_CRL_set_lastUpdate(x, tm); | ||
115 | } | ||
116 | |||
117 | int | ||
112 | X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | 118 | X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) |
113 | { | 119 | { |
114 | ASN1_TIME *in; | 120 | ASN1_TIME *in; |
@@ -127,6 +133,12 @@ X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | |||
127 | } | 133 | } |
128 | 134 | ||
129 | int | 135 | int |
136 | X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) | ||
137 | { | ||
138 | return X509_CRL_set_nextUpdate(x, tm); | ||
139 | } | ||
140 | |||
141 | int | ||
130 | X509_CRL_sort(X509_CRL *c) | 142 | X509_CRL_sort(X509_CRL *c) |
131 | { | 143 | { |
132 | int i; | 144 | int i; |