summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/p5_pbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/asn1/p5_pbe.c')
-rw-r--r--lib/libcrypto/asn1/p5_pbe.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/p5_pbe.c b/lib/libcrypto/asn1/p5_pbe.c
index 44fbb648bea..7491a5bdc7f 100644
--- a/lib/libcrypto/asn1/p5_pbe.c
+++ b/lib/libcrypto/asn1/p5_pbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_pbe.c,v 1.17 2014/10/22 13:02:03 jsing Exp $ */
+/* $OpenBSD: p5_pbe.c,v 1.18 2015/02/09 15:05:59 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -71,7 +71,31 @@ ASN1_SEQUENCE(PBEPARAM) = {
ASN1_SIMPLE(PBEPARAM, iter, ASN1_INTEGER)
} ASN1_SEQUENCE_END(PBEPARAM)
-IMPLEMENT_ASN1_FUNCTIONS(PBEPARAM)
+
+PBEPARAM *
+d2i_PBEPARAM(PBEPARAM **a, const unsigned char **in, long len)
+{
+ return (PBEPARAM *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
+ &PBEPARAM_it);
+}
+
+int
+i2d_PBEPARAM(PBEPARAM *a, unsigned char **out)
+{
+ return ASN1_item_i2d((ASN1_VALUE *)a, out, &PBEPARAM_it);
+}
+
+PBEPARAM *
+PBEPARAM_new(void)
+{
+ return (PBEPARAM *)ASN1_item_new(&PBEPARAM_it);
+}
+
+void
+PBEPARAM_free(PBEPARAM *a)
+{
+ ASN1_item_free((ASN1_VALUE *)a, &PBEPARAM_it);
+}
/* Set an algorithm identifier for a PKCS#5 PBE algorithm */