diff options
author | tb <> | 2018-05-19 10:37:02 +0000 |
---|---|---|
committer | tb <> | 2018-05-19 10:37:02 +0000 |
commit | 1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e (patch) | |
tree | 09bff977b3c9b52dbc505b7c8619bb34881b3f0f /src/lib/libcrypto/ec | |
parent | a3571a6f5858811485a8369d25914a65dac0e7dc (diff) | |
download | openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.tar.gz openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.tar.bz2 openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.zip |
Add a const qualifier to the 'key' argument of i2o_ECPublicKey() and
one to the last argument of each one of i2s_ASN1_OCTET_STRING(),
s2i_ASN1_OCTET_STRING(), i2s_ASN1_INTEGER(), i2s_ASN1_ENUMERATED(),
and i2s_ASN1_ENUMERATED_TABLE().
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index dc70cfa6af..d9df48603a 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec.h,v 1.12 2016/11/04 17:33:19 miod Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.13 2018/05/19 10:37:02 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -911,7 +911,7 @@ EC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len); | |||
911 | * of bytes needed). | 911 | * of bytes needed). |
912 | * \return 1 on success and 0 if an error occurred | 912 | * \return 1 on success and 0 if an error occurred |
913 | */ | 913 | */ |
914 | int i2o_ECPublicKey(EC_KEY *key, unsigned char **out); | 914 | int i2o_ECPublicKey(const EC_KEY *key, unsigned char **out); |
915 | 915 | ||
916 | #ifndef OPENSSL_NO_BIO | 916 | #ifndef OPENSSL_NO_BIO |
917 | /** Prints out the ec parameters on human readable form. | 917 | /** Prints out the ec parameters on human readable form. |
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c index 8e960e0112..5da7b2be89 100644 --- a/src/lib/libcrypto/ec/ec_asn1.c +++ b/src/lib/libcrypto/ec/ec_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_asn1.c,v 1.26 2018/04/23 09:37:50 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.27 2018/05/19 10:37:02 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -1586,7 +1586,7 @@ o2i_ECPublicKey(EC_KEY ** a, const unsigned char **in, long len) | |||
1586 | } | 1586 | } |
1587 | 1587 | ||
1588 | int | 1588 | int |
1589 | i2o_ECPublicKey(EC_KEY * a, unsigned char **out) | 1589 | i2o_ECPublicKey(const EC_KEY * a, unsigned char **out) |
1590 | { | 1590 | { |
1591 | size_t buf_len = 0; | 1591 | size_t buf_len = 0; |
1592 | int new_buffer = 0; | 1592 | int new_buffer = 0; |