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/ec_asn1.c | |
| 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/ec_asn1.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
