summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2018-02-22 17:01:44 +0000
committerjsing <>2018-02-22 17:01:44 +0000
commit6a8a8c750ccba69c261bfe0e0c3cc4d99e982304 (patch)
tree5b52b34b36124022901a9666b38c18fdb63f55f8 /src/lib
parent8c2c77439a4e7093f11e47ff90c661fc74fc423a (diff)
downloadopenbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.tar.gz
openbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.tar.bz2
openbsd-6a8a8c750ccba69c261bfe0e0c3cc4d99e982304.zip
Provide X509_CRL_set1_lastUpdate() and X509_CRL_set1_nextUpdate().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list2
-rw-r--r--src/lib/libcrypto/x509/x509.h4
-rw-r--r--src/lib/libcrypto/x509/x509cset.c14
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
2668X509_CRL_new 2668X509_CRL_new
2669X509_CRL_print 2669X509_CRL_print
2670X509_CRL_print_fp 2670X509_CRL_print_fp
2671X509_CRL_set1_lastUpdate
2672X509_CRL_set1_nextUpdate
2671X509_CRL_set_default_method 2673X509_CRL_set_default_method
2672X509_CRL_set_issuer_name 2674X509_CRL_set_issuer_name
2673X509_CRL_set_lastUpdate 2675X509_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,
1029int X509_CRL_set_version(X509_CRL *x, long version); 1029int X509_CRL_set_version(X509_CRL *x, long version);
1030int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name); 1030int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
1031int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm); 1031int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
1032int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
1032int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm); 1033int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
1034int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
1033int X509_CRL_sort(X509_CRL *crl); 1035int X509_CRL_sort(X509_CRL *crl);
1034 1036
1035const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(const X509_REVOKED *x); 1037const 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
111int 111int
112X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
113{
114 return X509_CRL_set_lastUpdate(x, tm);
115}
116
117int
112X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) 118X509_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
129int 135int
136X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
137{
138 return X509_CRL_set_nextUpdate(x, tm);
139}
140
141int
130X509_CRL_sort(X509_CRL *c) 142X509_CRL_sort(X509_CRL *c)
131{ 143{
132 int i; 144 int i;