summaryrefslogtreecommitdiff
path: root/lib/libtasn1.h
diff options
context:
space:
mode:
authorDariusz Michaluk <d.michaluk@samsung.com>2018-06-15 11:13:52 +0200
committerDariusz Michaluk <d.michaluk@samsung.com>2018-06-15 11:13:52 +0200
commitc38ae6ad7adfdfe3cb40ff348277ca32a16756b0 (patch)
tree563c3fd7bcfa7780960e831965d3d95cf20f24ca /lib/libtasn1.h
parent6bbf67947844bb4a21fe68481c541c197086336f (diff)
downloadlibtasn1-c38ae6ad7adfdfe3cb40ff348277ca32a16756b0.tar.gz
libtasn1-c38ae6ad7adfdfe3cb40ff348277ca32a16756b0.tar.bz2
libtasn1-c38ae6ad7adfdfe3cb40ff348277ca32a16756b0.zip
Imported Upstream version 4.12upstream/4.12
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r--lib/libtasn1.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 4ad01e7..626b11e 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -44,7 +44,7 @@ extern "C"
{
#endif
-#define ASN1_VERSION "4.10"
+#define ASN1_VERSION "4.12"
#if defined(__GNUC__) && !defined(ASN1_INTERNAL_BUILD)
# define _ASN1_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
@@ -78,6 +78,7 @@ extern "C"
#define ASN1_NAME_TOO_LONG 15
#define ASN1_ARRAY_ERROR 16
#define ASN1_ELEMENT_NOT_EMPTY 17
+#define ASN1_TIME_ENCODING_ERROR 18
/*************************************/
/* Constants used in asn1_visit_tree */
@@ -190,6 +191,8 @@ extern "C"
#define ASN1_DECODE_FLAG_ALLOW_PADDING 1
/* This flag would ensure that no BER decoding takes place */
#define ASN1_DECODE_FLAG_STRICT_DER (1<<1)
+/* This flag will tolerate Time encoding errors when in strict DER */
+#define ASN1_DECODE_FLAG_ALLOW_INCORRECT_TIME (1<<2)
struct asn1_data_node_st