diff options
author | djm <> | 2010-10-01 22:59:01 +0000 |
---|---|---|
committer | djm <> | 2010-10-01 22:59:01 +0000 |
commit | fe047d8b632246cb2db3234a0a4f32e5c318857b (patch) | |
tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libcrypto/asn1/x_long.c | |
parent | 2ea67f4aa254b09ded62e6e14fc893bbe6381579 (diff) | |
download | openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.gz openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.tar.bz2 openbsd-fe047d8b632246cb2db3234a0a4f32e5c318857b.zip |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libcrypto/asn1/x_long.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index bf35457c1f..75317418e1 100644 --- a/src/lib/libcrypto/asn1/x_long.c +++ b/src/lib/libcrypto/asn1/x_long.c | |||
@@ -71,6 +71,7 @@ static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); | |||
71 | 71 | ||
72 | static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it); | 72 | static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it); |
73 | static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it); | 73 | static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it); |
74 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx); | ||
74 | 75 | ||
75 | static ASN1_PRIMITIVE_FUNCS long_pf = { | 76 | static ASN1_PRIMITIVE_FUNCS long_pf = { |
76 | NULL, 0, | 77 | NULL, 0, |
@@ -78,7 +79,8 @@ static ASN1_PRIMITIVE_FUNCS long_pf = { | |||
78 | long_free, | 79 | long_free, |
79 | long_free, /* Clear should set to initial value */ | 80 | long_free, /* Clear should set to initial value */ |
80 | long_c2i, | 81 | long_c2i, |
81 | long_i2c | 82 | long_i2c, |
83 | long_print | ||
82 | }; | 84 | }; |
83 | 85 | ||
84 | ASN1_ITEM_start(LONG) | 86 | ASN1_ITEM_start(LONG) |
@@ -169,3 +171,9 @@ static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, | |||
169 | memcpy(cp, <mp, sizeof(long)); | 171 | memcpy(cp, <mp, sizeof(long)); |
170 | return 1; | 172 | return 1; |
171 | } | 173 | } |
174 | |||
175 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, | ||
176 | int indent, const ASN1_PCTX *pctx) | ||
177 | { | ||
178 | return BIO_printf(out, "%ld\n", *(long *)pval); | ||
179 | } | ||