diff options
author | jsing <> | 2019-03-31 14:41:40 +0000 |
---|---|---|
committer | jsing <> | 2019-03-31 14:41:40 +0000 |
commit | 918313053be2a9fe66f64b9266dec918010184c3 (patch) | |
tree | 361df2046c4263477d68d27bfcc068fc83fb13bf | |
parent | 7b12ab45f21197a981f1b592f0f36856d5d88f45 (diff) | |
download | openbsd-918313053be2a9fe66f64b9266dec918010184c3.tar.gz openbsd-918313053be2a9fe66f64b9266dec918010184c3.tar.bz2 openbsd-918313053be2a9fe66f64b9266dec918010184c3.zip |
Wrap long lines and apply some style(9).
-rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index b598937dcd..efafce15fe 100644 --- a/src/lib/libcrypto/asn1/x_long.c +++ b/src/lib/libcrypto/asn1/x_long.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_long.c,v 1.12 2019/03/31 14:39:15 jsing Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.13 2019/03/31 14:41:40 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -63,17 +63,20 @@ | |||
63 | #include <openssl/bn.h> | 63 | #include <openssl/bn.h> |
64 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
65 | 65 | ||
66 | /* Custom primitive type for long handling. This converts between an ASN1_INTEGER | 66 | /* |
67 | * and a long directly. | 67 | * Custom primitive type for long handling. This converts between an |
68 | * ASN1_INTEGER and a long directly. | ||
68 | */ | 69 | */ |
69 | 70 | ||
70 | |||
71 | static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it); | 71 | static int long_new(ASN1_VALUE **pval, const ASN1_ITEM *it); |
72 | static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); | 72 | static void long_free(ASN1_VALUE **pval, const ASN1_ITEM *it); |
73 | 73 | ||
74 | static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, const ASN1_ITEM *it); | 74 | static int long_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype, |
75 | static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, char *free_cont, const ASN1_ITEM *it); | 75 | const ASN1_ITEM *it); |
76 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, int indent, const ASN1_PCTX *pctx); | 76 | static int long_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, |
77 | int utype, char *free_cont, const ASN1_ITEM *it); | ||
78 | static int long_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it, | ||
79 | int indent, const ASN1_PCTX *pctx); | ||
77 | 80 | ||
78 | static ASN1_PRIMITIVE_FUNCS long_pf = { | 81 | static ASN1_PRIMITIVE_FUNCS long_pf = { |
79 | .app_data = NULL, | 82 | .app_data = NULL, |