summaryrefslogtreecommitdiff
path: root/lib/x509/common.h
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2020-05-14 09:26:36 +0000
committerDmitry Baryshkov <dbaryshkov@gmail.com>2020-05-14 09:26:36 +0000
commit771aeb763c14ab9fe6a2bbfc2cffe45908c5a377 (patch)
treec28e52643452fc1ef64ea67d26bd12613c65fcfc /lib/x509/common.h
parent033d398a630253577aaee3354856d59375059de4 (diff)
parent37cb916de5c8806b43bfbc859f27fe03624f297e (diff)
downloadgnutls-771aeb763c14ab9fe6a2bbfc2cffe45908c5a377.tar.gz
Merge branch 'pkcs7-attrs' into 'master'
PKCS7 attribute printing update See merge request gnutls/gnutls!1246
Diffstat (limited to 'lib/x509/common.h')
-rw-r--r--lib/x509/common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/x509/common.h b/lib/x509/common.h
index 54ded21188..483bd1de6c 100644
--- a/lib/x509/common.h
+++ b/lib/x509/common.h
@@ -114,6 +114,18 @@
#define ASN1_NULL "\x05\x00"
#define ASN1_NULL_SIZE 2
+struct oid_to_string {
+ const char *oid;
+ unsigned oid_size;
+ const char *name_desc;
+ unsigned name_desc_size;
+ const char *asn_desc; /* description in the pkix file if complex type */
+ unsigned int etype; /* the libtasn1 ASN1_ETYPE or INVALID
+ * if cannot be simply parsed */
+};
+
+const struct oid_to_string *_gnutls_oid_get_entry(const struct oid_to_string *ots, const char *oid);
+
int _gnutls_x509_set_time(ASN1_TYPE c2, const char *where, time_t tim,
int force_general);
int