openssl: Make some additional arguments const

Related to openssl 1.1.x changes.

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2019-12-11 13:09:04 +01:00
parent 8ee1242f14
commit cf18951efd
2 changed files with 4 additions and 4 deletions
@@ -153,7 +153,7 @@ bool openssl_bn2chunk(const BIGNUM *bn, chunk_t *chunk)
/** /**
* Described in header. * Described in header.
*/ */
chunk_t openssl_asn1_obj2chunk(ASN1_OBJECT *asn1) chunk_t openssl_asn1_obj2chunk(const ASN1_OBJECT *asn1)
{ {
if (asn1) if (asn1)
{ {
@@ -206,7 +206,7 @@ time_t asn1_to_time(chunk_t *,int);
/** /**
* Described in header. * Described in header.
*/ */
int openssl_asn1_known_oid(ASN1_OBJECT *obj) int openssl_asn1_known_oid(const ASN1_OBJECT *obj)
{ {
return asn1_known_oid(openssl_asn1_obj2chunk(obj)); return asn1_known_oid(openssl_asn1_obj2chunk(obj));
} }
@@ -101,7 +101,7 @@ bool openssl_bn2chunk(const BIGNUM *bn, chunk_t *chunk);
* @param asn1 asn1 object to convert * @param asn1 asn1 object to convert
* @return chunk, pointing into asn1 object * @return chunk, pointing into asn1 object
*/ */
chunk_t openssl_asn1_obj2chunk(ASN1_OBJECT *asn1); chunk_t openssl_asn1_obj2chunk(const ASN1_OBJECT *asn1);
/** /**
* Convert an OpenSSL ASN1_STRING to a chunk. * Convert an OpenSSL ASN1_STRING to a chunk.
@@ -125,7 +125,7 @@ identification_t *openssl_x509_name2id(X509_NAME *name);
* @param obj openssl ASN1 object * @param obj openssl ASN1 object
* @returns OID, as defined in <asn1/oid.h> * @returns OID, as defined in <asn1/oid.h>
*/ */
int openssl_asn1_known_oid(ASN1_OBJECT *obj); int openssl_asn1_known_oid(const ASN1_OBJECT *obj);
/** /**
* Convert an OpenSSL ASN1_TIME to a time_t. * Convert an OpenSSL ASN1_TIME to a time_t.