summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2016-12-27 16:23:05 +0000
committerjsing <>2016-12-27 16:23:05 +0000
commitea7d90cc3b15c2d2076e56fdb931181478d62eea (patch)
treec7f05d8f098d0ceea7877bef5c79d17702096921 /src
parentb3ae6227d34804a278856dd3e00810d4af18d36e (diff)
downloadopenbsd-ea7d90cc3b15c2d2076e56fdb931181478d62eea.tar.gz
openbsd-ea7d90cc3b15c2d2076e56fdb931181478d62eea.tar.bz2
openbsd-ea7d90cc3b15c2d2076e56fdb931181478d62eea.zip
Expand DECLARE_ASN1_FUNCTIONS_{fname,name} macros - no change to
preprocessor output, excluding line numbers and newlines.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/asn1.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index aaafdcf116..b665de903a 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.38 2016/12/27 16:05:56 jsing Exp $ */ 1/* $OpenBSD: asn1.h,v 1.39 2016/12/27 16:23:05 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -742,7 +742,11 @@ typedef struct BIT_STRING_BITNAME_st {
742#define IS_SEQUENCE 0 742#define IS_SEQUENCE 0
743#define IS_SET 1 743#define IS_SET 1
744 744
745DECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE) 745ASN1_TYPE *ASN1_TYPE_new(void);
746void ASN1_TYPE_free(ASN1_TYPE *a);
747ASN1_TYPE *d2i_ASN1_TYPE(ASN1_TYPE **a, const unsigned char **in, long len);
748int i2d_ASN1_TYPE(const ASN1_TYPE *a, unsigned char **out);
749extern const ASN1_ITEM ASN1_ANY_it;
746 750
747int ASN1_TYPE_get(ASN1_TYPE *a); 751int ASN1_TYPE_get(ASN1_TYPE *a);
748void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value); 752void ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);
@@ -872,10 +876,22 @@ ASN1_BMPSTRING *d2i_ASN1_BMPSTRING(ASN1_BMPSTRING **a, const unsigned char **in,
872int i2d_ASN1_BMPSTRING(ASN1_BMPSTRING *a, unsigned char **out); 876int i2d_ASN1_BMPSTRING(ASN1_BMPSTRING *a, unsigned char **out);
873extern const ASN1_ITEM ASN1_BMPSTRING_it; 877extern const ASN1_ITEM ASN1_BMPSTRING_it;
874 878
875DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) 879ASN1_STRING *ASN1_PRINTABLE_new(void);
876 880void ASN1_PRINTABLE_free(ASN1_STRING *a);
877DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) 881ASN1_STRING *d2i_ASN1_PRINTABLE(ASN1_STRING **a, const unsigned char **in, long len);
878DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT) 882int i2d_ASN1_PRINTABLE(const ASN1_STRING *a, unsigned char **out);
883extern const ASN1_ITEM ASN1_PRINTABLE_it;
884
885ASN1_STRING *DIRECTORYSTRING_new(void);
886void DIRECTORYSTRING_free(ASN1_STRING *a);
887ASN1_STRING *d2i_DIRECTORYSTRING(ASN1_STRING **a, const unsigned char **in, long len);
888int i2d_DIRECTORYSTRING(const ASN1_STRING *a, unsigned char **out);
889extern const ASN1_ITEM DIRECTORYSTRING_it;
890ASN1_STRING *DISPLAYTEXT_new(void);
891void DISPLAYTEXT_free(ASN1_STRING *a);
892ASN1_STRING *d2i_DISPLAYTEXT(ASN1_STRING **a, const unsigned char **in, long len);
893int i2d_DISPLAYTEXT(const ASN1_STRING *a, unsigned char **out);
894extern const ASN1_ITEM DISPLAYTEXT_it;
879ASN1_PRINTABLESTRING *ASN1_PRINTABLESTRING_new(void); 895ASN1_PRINTABLESTRING *ASN1_PRINTABLESTRING_new(void);
880void ASN1_PRINTABLESTRING_free(ASN1_PRINTABLESTRING *a); 896void ASN1_PRINTABLESTRING_free(ASN1_PRINTABLESTRING *a);
881ASN1_PRINTABLESTRING *d2i_ASN1_PRINTABLESTRING(ASN1_PRINTABLESTRING **a, const unsigned char **in, long len); 897ASN1_PRINTABLESTRING *d2i_ASN1_PRINTABLESTRING(ASN1_PRINTABLESTRING **a, const unsigned char **in, long len);