diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-20 22:50:42 +0000 |
commit | 95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea (patch) | |
tree | 6bdbca71df2722da6b3c27c8cc2a0b00115edaa9 /crypto/x509v3 | |
parent | f36cd05b22a587e552c97797b54fd07bc0762446 (diff) | |
download | openssl-95dc05bc6d0dfe0f3f3681f5e27afbc3f7a35eea.tar.gz |
Fix lots of warnings.
Submitted by: Richard Levitte <levitte@stacken.kth.se>
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_alt.c | 3 | ||||
-rw-r--r-- | crypto/x509v3/v3_conf.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/v3_ia5.c | 3 | ||||
-rw-r--r-- | crypto/x509v3/v3_prn.c | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/crypto/x509v3/v3_alt.c b/crypto/x509v3/v3_alt.c index e9bfad8025..3823339650 100644 --- a/crypto/x509v3/v3_alt.c +++ b/crypto/x509v3/v3_alt.c @@ -392,7 +392,8 @@ if(!name_cmp(name, "email")) { if(is_string) { if(!(gen->d.ia5 = ASN1_IA5STRING_new()) || - !ASN1_STRING_set(gen->d.ia5, value, strlen(value))) { + !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value, + strlen(value))) { X509V3err(X509V3_F_V2I_GENERAL_NAME,ERR_R_MALLOC_FAILURE); goto err; } diff --git a/crypto/x509v3/v3_conf.c b/crypto/x509v3/v3_conf.c index d2485827da..8e42bd8ac8 100644 --- a/crypto/x509v3/v3_conf.c +++ b/crypto/x509v3/v3_conf.c @@ -125,7 +125,7 @@ static X509_EXTENSION *do_ext_conf(LHASH *conf, X509V3_CTX *ctx, int ext_nid, X509V3_EXT_METHOD *method; STACK *nval; char *ext_struc; - char *ext_der, *p; + unsigned char *ext_der, *p; int ext_len; ASN1_OCTET_STRING *ext_oct; if(ext_nid == NID_undef) { diff --git a/crypto/x509v3/v3_ia5.c b/crypto/x509v3/v3_ia5.c index f4042915f0..d590bef0ac 100644 --- a/crypto/x509v3/v3_ia5.c +++ b/crypto/x509v3/v3_ia5.c @@ -110,7 +110,8 @@ static ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, return NULL; } if(!(ia5 = ASN1_IA5STRING_new())) goto err; - if(!ASN1_STRING_set((ASN1_STRING *)ia5, str, strlen(str))) { + if(!ASN1_STRING_set((ASN1_STRING *)ia5, (unsigned char*)str, + strlen(str))) { ASN1_IA5STRING_free(ia5); goto err; } diff --git a/crypto/x509v3/v3_prn.c b/crypto/x509v3/v3_prn.c index d81f4088e0..8ddc16b7cd 100644 --- a/crypto/x509v3/v3_prn.c +++ b/crypto/x509v3/v3_prn.c @@ -87,7 +87,8 @@ void X509V3_EXT_val_prn(BIO *out, STACK *val, int indent, int ml) int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent) { - char *ext_str = NULL, *p, *value = NULL; + char *ext_str = NULL, *value = NULL; + unsigned char *p; X509V3_EXT_METHOD *method; STACK *nval = NULL; int ok = 1; |