diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
commit | e778802f53c8d47e96a6e4cbc776eb6e1d4c461a (patch) | |
tree | 719d4dd0fc69b355c6d8329af1f90b2c4f603548 /crypto/x509v3 | |
parent | d77b3054cd87c2b13fa0169931f74b8e0dac5252 (diff) |
Massive constification.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_conf.c | 4 | ||||
-rw-r--r-- | crypto/x509v3/v3_utl.c | 12 | ||||
-rw-r--r-- | crypto/x509v3/x509v3.h | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/crypto/x509v3/v3_conf.c b/crypto/x509v3/v3_conf.c index f81cd277d8..0427a3071e 100644 --- a/crypto/x509v3/v3_conf.c +++ b/crypto/x509v3/v3_conf.c @@ -70,7 +70,7 @@ static int v3_check_critical(char **value); static int v3_check_generic(char **value); static X509_EXTENSION *do_ext_conf(LHASH *conf, X509V3_CTX *ctx, int ext_nid, int crit, char *value); -static X509_EXTENSION *v3_generic_extension(char *ext, char *value, int crit, int type); +static X509_EXTENSION *v3_generic_extension(const char *ext, char *value, int crit, int type); #else static int v3_check_critical(); static int v3_check_generic(); @@ -198,7 +198,7 @@ char **value; /* Create a generic extension: for now just handle RAW type */ static X509_EXTENSION *v3_generic_extension(ext, value, crit, type) -char *ext; +const char *ext; char *value; int crit; int type; diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index cd53f35b94..5f26e40af2 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -69,8 +69,8 @@ static char *strip_spaces(char *name); /* Add a CONF_VALUE name value pair to stack */ int X509V3_add_value(name, value, extlist) -char *name; -char *value; +const char *name; +const char *value; STACK **extlist; { CONF_VALUE *vtmp = NULL; @@ -105,7 +105,7 @@ CONF_VALUE *conf; } int X509V3_add_value_bool(name, asn1_bool, extlist) -char *name; +const char *name; int asn1_bool; STACK **extlist; { @@ -176,7 +176,7 @@ char *value; } int X509V3_add_value_int(name, aint, extlist) -char *name; +const char *name; ASN1_INTEGER *aint; STACK **extlist; { @@ -426,8 +426,8 @@ long *len; */ int name_cmp(name, cmp) -char *name; -char *cmp; +const char *name; +const char *cmp; { int len, ret; char c; diff --git a/crypto/x509v3/x509v3.h b/crypto/x509v3/x509v3.h index 52037eccb3..63c8574220 100644 --- a/crypto/x509v3/x509v3.h +++ b/crypto/x509v3/x509v3.h @@ -137,8 +137,8 @@ typedef struct v3_ext_ctx X509V3_CTX; typedef struct BIT_STRING_BITNAME_st { int bitnum; -char *lname; -char *sname; +const char *lname; +const char *sname; } BIT_STRING_BITNAME; typedef BIT_STRING_BITNAME ENUMERATED_NAMES; @@ -299,9 +299,9 @@ void X509V3_free_section( X509V3_CTX *ctx, STACK *section); void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject, X509_REQ *req, X509_CRL *crl, int flags); -int X509V3_add_value(char *name, char *value, STACK **extlist); -int X509V3_add_value_bool(char *name, int asn1_bool, STACK **extlist); -int X509V3_add_value_int( char *name, ASN1_INTEGER *aint, STACK **extlist); +int X509V3_add_value(const char *name, const char *value, STACK **extlist); +int X509V3_add_value_bool(const char *name, int asn1_bool, STACK **extlist); +int X509V3_add_value_int(const char *name, ASN1_INTEGER *aint, STACK **extlist); char * i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint); ASN1_INTEGER * s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, char *value); char * i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint); @@ -318,7 +318,7 @@ char *X509V3_EXT_d2i(X509_EXTENSION *ext); char *hex_to_string(unsigned char *buffer, long len); unsigned char *string_to_hex(char *str, long *len); -int name_cmp(char *name, char *cmp); +int name_cmp(const char *name, const char *cmp); int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent); int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); |