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:
@@ -153,7 +153,7 @@ bool openssl_bn2chunk(const BIGNUM *bn, chunk_t *chunk)
|
||||
/**
|
||||
* Described in header.
|
||||
*/
|
||||
chunk_t openssl_asn1_obj2chunk(ASN1_OBJECT *asn1)
|
||||
chunk_t openssl_asn1_obj2chunk(const ASN1_OBJECT *asn1)
|
||||
{
|
||||
if (asn1)
|
||||
{
|
||||
@@ -206,7 +206,7 @@ time_t asn1_to_time(chunk_t *,int);
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ bool openssl_bn2chunk(const BIGNUM *bn, chunk_t *chunk);
|
||||
* @param asn1 asn1 object to convert
|
||||
* @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.
|
||||
@@ -125,7 +125,7 @@ identification_t *openssl_x509_name2id(X509_NAME *name);
|
||||
* @param obj openssl ASN1 object
|
||||
* @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.
|
||||
|
||||
Reference in New Issue
Block a user