diff options
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_utl.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_bignum.c | 26 | ||||
| -rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 26 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/tasn_utl.c | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/x_bignum.c | 26 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/x_long.c | 26 |
6 files changed, 80 insertions, 32 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_utl.c b/src/lib/libcrypto/asn1/tasn_utl.c index 8e242e8810..529aaf6116 100644 --- a/src/lib/libcrypto/asn1/tasn_utl.c +++ b/src/lib/libcrypto/asn1/tasn_utl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_utl.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: tasn_utl.c,v 1.11 2015/07/25 17:07:17 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 | */ |
| @@ -232,7 +232,7 @@ asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, int nullerr) | |||
| 232 | return tt; | 232 | return tt; |
| 233 | 233 | ||
| 234 | /* Else ANY DEFINED BY ... get the table */ | 234 | /* Else ANY DEFINED BY ... get the table */ |
| 235 | adb = ASN1_ADB_ptr(tt->item); | 235 | adb = (const ASN1_ADB *)tt->item; |
| 236 | 236 | ||
| 237 | /* Get the selector field */ | 237 | /* Get the selector field */ |
| 238 | sfld = offset2ptr(*pval, adb->offset); | 238 | sfld = offset2ptr(*pval, adb->offset); |
diff --git a/src/lib/libcrypto/asn1/x_bignum.c b/src/lib/libcrypto/asn1/x_bignum.c index dafe9b3016..73f0f73c1c 100644 --- a/src/lib/libcrypto/asn1/x_bignum.c +++ b/src/lib/libcrypto/asn1/x_bignum.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_bignum.c,v 1.7 2014/07/12 16:42:47 miod Exp $ */ | 1 | /* $OpenBSD: x_bignum.c,v 1.8 2015/07/25 17:07:17 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 | */ |
| @@ -86,13 +86,25 @@ static ASN1_PRIMITIVE_FUNCS bignum_pf = { | |||
| 86 | bn_i2c | 86 | bn_i2c |
| 87 | }; | 87 | }; |
| 88 | 88 | ||
| 89 | ASN1_ITEM_start(BIGNUM) | 89 | const ASN1_ITEM BIGNUM_it = { |
| 90 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 90 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 91 | ASN1_ITEM_end(BIGNUM) | 91 | .utype = V_ASN1_INTEGER, |
| 92 | .templates = NULL, | ||
| 93 | .tcount = 0, | ||
| 94 | .funcs = &bignum_pf, | ||
| 95 | .size = 0, | ||
| 96 | .sname = "BIGNUM", | ||
| 97 | }; | ||
| 92 | 98 | ||
| 93 | ASN1_ITEM_start(CBIGNUM) | 99 | const ASN1_ITEM CBIGNUM_it = { |
| 94 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 100 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 95 | ASN1_ITEM_end(CBIGNUM) | 101 | .utype = V_ASN1_INTEGER, |
| 102 | .templates = NULL, | ||
| 103 | .tcount = 0, | ||
| 104 | .funcs = &bignum_pf, | ||
| 105 | .size = 0, | ||
| 106 | .sname = "BIGNUM", | ||
| 107 | }; | ||
| 96 | 108 | ||
| 97 | static int | 109 | static int |
| 98 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 110 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index 1add387453..90a41129bc 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.9 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.10 2015/07/25 17:07:17 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 | */ |
| @@ -85,13 +85,25 @@ static ASN1_PRIMITIVE_FUNCS long_pf = { | |||
| 85 | long_print | 85 | long_print |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | ASN1_ITEM_start(LONG) | 88 | const ASN1_ITEM LONG_it = { |
| 89 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, ASN1_LONG_UNDEF, "LONG" | 89 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 90 | ASN1_ITEM_end(LONG) | 90 | .utype = V_ASN1_INTEGER, |
| 91 | .templates = NULL, | ||
| 92 | .tcount = 0, | ||
| 93 | .funcs = &long_pf, | ||
| 94 | .size = ASN1_LONG_UNDEF, | ||
| 95 | .sname = "LONG", | ||
| 96 | }; | ||
| 91 | 97 | ||
| 92 | ASN1_ITEM_start(ZLONG) | 98 | const ASN1_ITEM ZLONG_it = { |
| 93 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, 0, "ZLONG" | 99 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 94 | ASN1_ITEM_end(ZLONG) | 100 | .utype = V_ASN1_INTEGER, |
| 101 | .templates = NULL, | ||
| 102 | .tcount = 0, | ||
| 103 | .funcs = &long_pf, | ||
| 104 | .size = 0, | ||
| 105 | .sname = "ZLONG", | ||
| 106 | }; | ||
| 95 | 107 | ||
| 96 | static int | 108 | static int |
| 97 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 109 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |
diff --git a/src/lib/libssl/src/crypto/asn1/tasn_utl.c b/src/lib/libssl/src/crypto/asn1/tasn_utl.c index 8e242e8810..529aaf6116 100644 --- a/src/lib/libssl/src/crypto/asn1/tasn_utl.c +++ b/src/lib/libssl/src/crypto/asn1/tasn_utl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tasn_utl.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: tasn_utl.c,v 1.11 2015/07/25 17:07:17 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 | */ |
| @@ -232,7 +232,7 @@ asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt, int nullerr) | |||
| 232 | return tt; | 232 | return tt; |
| 233 | 233 | ||
| 234 | /* Else ANY DEFINED BY ... get the table */ | 234 | /* Else ANY DEFINED BY ... get the table */ |
| 235 | adb = ASN1_ADB_ptr(tt->item); | 235 | adb = (const ASN1_ADB *)tt->item; |
| 236 | 236 | ||
| 237 | /* Get the selector field */ | 237 | /* Get the selector field */ |
| 238 | sfld = offset2ptr(*pval, adb->offset); | 238 | sfld = offset2ptr(*pval, adb->offset); |
diff --git a/src/lib/libssl/src/crypto/asn1/x_bignum.c b/src/lib/libssl/src/crypto/asn1/x_bignum.c index dafe9b3016..73f0f73c1c 100644 --- a/src/lib/libssl/src/crypto/asn1/x_bignum.c +++ b/src/lib/libssl/src/crypto/asn1/x_bignum.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_bignum.c,v 1.7 2014/07/12 16:42:47 miod Exp $ */ | 1 | /* $OpenBSD: x_bignum.c,v 1.8 2015/07/25 17:07:17 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 | */ |
| @@ -86,13 +86,25 @@ static ASN1_PRIMITIVE_FUNCS bignum_pf = { | |||
| 86 | bn_i2c | 86 | bn_i2c |
| 87 | }; | 87 | }; |
| 88 | 88 | ||
| 89 | ASN1_ITEM_start(BIGNUM) | 89 | const ASN1_ITEM BIGNUM_it = { |
| 90 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 90 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 91 | ASN1_ITEM_end(BIGNUM) | 91 | .utype = V_ASN1_INTEGER, |
| 92 | .templates = NULL, | ||
| 93 | .tcount = 0, | ||
| 94 | .funcs = &bignum_pf, | ||
| 95 | .size = 0, | ||
| 96 | .sname = "BIGNUM", | ||
| 97 | }; | ||
| 92 | 98 | ||
| 93 | ASN1_ITEM_start(CBIGNUM) | 99 | const ASN1_ITEM CBIGNUM_it = { |
| 94 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 100 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 95 | ASN1_ITEM_end(CBIGNUM) | 101 | .utype = V_ASN1_INTEGER, |
| 102 | .templates = NULL, | ||
| 103 | .tcount = 0, | ||
| 104 | .funcs = &bignum_pf, | ||
| 105 | .size = 0, | ||
| 106 | .sname = "BIGNUM", | ||
| 107 | }; | ||
| 96 | 108 | ||
| 97 | static int | 109 | static int |
| 98 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 110 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |
diff --git a/src/lib/libssl/src/crypto/asn1/x_long.c b/src/lib/libssl/src/crypto/asn1/x_long.c index 1add387453..90a41129bc 100644 --- a/src/lib/libssl/src/crypto/asn1/x_long.c +++ b/src/lib/libssl/src/crypto/asn1/x_long.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x_long.c,v 1.9 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.10 2015/07/25 17:07:17 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 | */ |
| @@ -85,13 +85,25 @@ static ASN1_PRIMITIVE_FUNCS long_pf = { | |||
| 85 | long_print | 85 | long_print |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | ASN1_ITEM_start(LONG) | 88 | const ASN1_ITEM LONG_it = { |
| 89 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, ASN1_LONG_UNDEF, "LONG" | 89 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 90 | ASN1_ITEM_end(LONG) | 90 | .utype = V_ASN1_INTEGER, |
| 91 | .templates = NULL, | ||
| 92 | .tcount = 0, | ||
| 93 | .funcs = &long_pf, | ||
| 94 | .size = ASN1_LONG_UNDEF, | ||
| 95 | .sname = "LONG", | ||
| 96 | }; | ||
| 91 | 97 | ||
| 92 | ASN1_ITEM_start(ZLONG) | 98 | const ASN1_ITEM ZLONG_it = { |
| 93 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, 0, "ZLONG" | 99 | .itype = ASN1_ITYPE_PRIMITIVE, |
| 94 | ASN1_ITEM_end(ZLONG) | 100 | .utype = V_ASN1_INTEGER, |
| 101 | .templates = NULL, | ||
| 102 | .tcount = 0, | ||
| 103 | .funcs = &long_pf, | ||
| 104 | .size = 0, | ||
| 105 | .sname = "ZLONG", | ||
| 106 | }; | ||
| 95 | 107 | ||
| 96 | static int | 108 | static int |
| 97 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 109 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |
