diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-07-31 19:38:09 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-04 17:02:48 +0200 |
commit | c47ba4e96c7aa9c2f741f8c89b6440ed2c13b91c (patch) | |
tree | 0057bcd12bc5ef5437bdfde700d573f6ff2b56d7 /crypto/x509/x509name.c | |
parent | cfc5e0aa739abeb8861d2127ca31addcc1149a3e (diff) |
Constify some ASN1_OBJECT *obj input parameters
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509name.c')
-rw-r--r-- | crypto/x509/x509name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509name.c b/crypto/x509/x509name.c index 92074d323d..fa84bff434 100644 --- a/crypto/x509/x509name.c +++ b/crypto/x509/x509name.c @@ -26,7 +26,7 @@ int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len) return (X509_NAME_get_text_by_OBJ(name, obj, buf, len)); } -int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, char *buf, +int X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, char *buf, int len) { int i; @@ -62,7 +62,7 @@ int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos) } /* NOTE: you should be passing -1, not 0 as lastpos */ -int X509_NAME_get_index_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int lastpos) +int X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int lastpos) { int n; X509_NAME_ENTRY *ne; |