Renamed asn1_der_decoding_relaxed(), added ASN1_DECODE_FLAG_ALLOW_PADDING.
[platform/upstream/libtasn1.git] / lib / libtasn1.h
index 4c71849..1e90b73 100644 (file)
@@ -184,6 +184,9 @@ extern "C"
 /* makes sure the values are zeroized prior to deinitialization */
 #define ASN1_DELETE_FLAG_ZEROIZE 1
 
+/* Flags used by asn1_der_decoding2(). */
+#define ASN1_DECODE_FLAG_ALLOW_PADDING 1
+
 
   struct asn1_data_node_st
   {
@@ -259,8 +262,9 @@ extern "C"
                     void *ider, int *len, char *ErrorDescription);
 
   extern ASN1_API int
-    asn1_der_decoding_relaxed (asn1_node * element, const void *ider,
-                              int *max_ider_len, char *errorDescription);
+    asn1_der_decoding2 (asn1_node *element, const void *ider,
+                       int *max_ider_len, unsigned int flags,
+                       char *errorDescription);
 
   extern ASN1_API int
     asn1_der_decoding (asn1_node * element, const void *ider,