summaryrefslogtreecommitdiff
path: root/lib/libcrypto/gost/gost_asn1.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2016-09-04 17:02:32 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2016-09-04 17:02:32 +0000
commitefb163ab9f44659e77b903832efbc5747f53e611 (patch)
tree6f2047f2e391888cd121565335a09487381028ad /lib/libcrypto/gost/gost_asn1.h
parente146458066837975443417017f77c9582cba17be (diff)
Expand DECLARE_ASN1_.*FUNCTIONS macros.
No change in preprocessed output, ignoring whitespace and line numbers.
Diffstat (limited to 'lib/libcrypto/gost/gost_asn1.h')
-rw-r--r--lib/libcrypto/gost/gost_asn1.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/lib/libcrypto/gost/gost_asn1.h b/lib/libcrypto/gost/gost_asn1.h
index 62719c70cd9..8cafa6be3b6 100644
--- a/lib/libcrypto/gost/gost_asn1.h
+++ b/lib/libcrypto/gost/gost_asn1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gost_asn1.h,v 1.1 2014/11/09 19:17:13 miod Exp $ */
+/* $OpenBSD: gost_asn1.h,v 1.2 2016/09/04 17:02:31 jsing Exp $ */
/*
* Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* Copyright (c) 2005-2006 Cryptocom LTD
@@ -59,7 +59,11 @@ typedef struct {
ASN1_OCTET_STRING *imit;
} GOST_KEY_INFO;
-DECLARE_ASN1_FUNCTIONS(GOST_KEY_INFO)
+GOST_KEY_INFO *GOST_KEY_INFO_new(void);
+void GOST_KEY_INFO_free(GOST_KEY_INFO *a);
+GOST_KEY_INFO *d2i_GOST_KEY_INFO(GOST_KEY_INFO **a, const unsigned char **in, long len);
+int i2d_GOST_KEY_INFO(GOST_KEY_INFO *a, unsigned char **out);
+extern const ASN1_ITEM GOST_KEY_INFO_it;
typedef struct {
ASN1_OBJECT *cipher;
@@ -67,14 +71,22 @@ typedef struct {
ASN1_OCTET_STRING *eph_iv;
} GOST_KEY_AGREEMENT_INFO;
-DECLARE_ASN1_FUNCTIONS(GOST_KEY_AGREEMENT_INFO)
+GOST_KEY_AGREEMENT_INFO *GOST_KEY_AGREEMENT_INFO_new(void);
+void GOST_KEY_AGREEMENT_INFO_free(GOST_KEY_AGREEMENT_INFO *a);
+GOST_KEY_AGREEMENT_INFO *d2i_GOST_KEY_AGREEMENT_INFO(GOST_KEY_AGREEMENT_INFO **a, const unsigned char **in, long len);
+int i2d_GOST_KEY_AGREEMENT_INFO(GOST_KEY_AGREEMENT_INFO *a, unsigned char **out);
+extern const ASN1_ITEM GOST_KEY_AGREEMENT_INFO_it;
typedef struct {
GOST_KEY_INFO *key_info;
GOST_KEY_AGREEMENT_INFO *key_agreement_info;
} GOST_KEY_TRANSPORT;
-DECLARE_ASN1_FUNCTIONS(GOST_KEY_TRANSPORT)
+GOST_KEY_TRANSPORT *GOST_KEY_TRANSPORT_new(void);
+void GOST_KEY_TRANSPORT_free(GOST_KEY_TRANSPORT *a);
+GOST_KEY_TRANSPORT *d2i_GOST_KEY_TRANSPORT(GOST_KEY_TRANSPORT **a, const unsigned char **in, long len);
+int i2d_GOST_KEY_TRANSPORT(GOST_KEY_TRANSPORT *a, unsigned char **out);
+extern const ASN1_ITEM GOST_KEY_TRANSPORT_it;
typedef struct {
ASN1_OBJECT *key_params;
@@ -82,6 +94,10 @@ typedef struct {
ASN1_OBJECT *cipher_params;
} GOST_KEY_PARAMS;
-DECLARE_ASN1_FUNCTIONS(GOST_KEY_PARAMS)
+GOST_KEY_PARAMS *GOST_KEY_PARAMS_new(void);
+void GOST_KEY_PARAMS_free(GOST_KEY_PARAMS *a);
+GOST_KEY_PARAMS *d2i_GOST_KEY_PARAMS(GOST_KEY_PARAMS **a, const unsigned char **in, long len);
+int i2d_GOST_KEY_PARAMS(GOST_KEY_PARAMS *a, unsigned char **out);
+extern const ASN1_ITEM GOST_KEY_PARAMS_it;
#endif