summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec.h
diff options
context:
space:
mode:
authortb <>2018-05-19 10:37:02 +0000
committertb <>2018-05-19 10:37:02 +0000
commitebcd9413cf5a196f715422cc604ef2765ab8ecc2 (patch)
tree09bff977b3c9b52dbc505b7c8619bb34881b3f0f /src/lib/libcrypto/ec/ec.h
parent09ddf19059901a261e51e81d27ef92b13127c01f (diff)
downloadopenbsd-ebcd9413cf5a196f715422cc604ef2765ab8ecc2.tar.gz
openbsd-ebcd9413cf5a196f715422cc604ef2765ab8ecc2.tar.bz2
openbsd-ebcd9413cf5a196f715422cc604ef2765ab8ecc2.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 '')
-rw-r--r--src/lib/libcrypto/ec/ec.h4
1 files changed, 2 insertions, 2 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 */
914int i2o_ECPublicKey(EC_KEY *key, unsigned char **out); 914int 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.