fixed some compiler warnings

This commit is contained in:
Martin Willi
2006-09-21 09:17:13 +00:00
parent 73760ca5ff
commit 2fcc4168f8
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ err_t pem_to_bin(chunk_t *blob, chunk_t *passphrase, bool *pgp)
} state_t; } state_t;
encryption_algorithm_t alg = ENCR_UNDEFINED; encryption_algorithm_t alg = ENCR_UNDEFINED;
size_t key_size; size_t key_size = 0;
bool encrypted = FALSE; bool encrypted = FALSE;
+8 -8
View File
@@ -220,7 +220,7 @@ bool parse_x509crl(chunk_t blob, u_int level0, private_crl_t *crl)
bool critical; bool critical;
chunk_t extnID; chunk_t extnID;
chunk_t userCertificate; chunk_t userCertificate;
revokedCert_t *revokedCert; revokedCert_t *revokedCert = NULL;
chunk_t object; chunk_t object;
u_int level; u_int level;
int objectID = 0; int objectID = 0;
@@ -264,11 +264,11 @@ bool parse_x509crl(chunk_t blob, u_int level0, private_crl_t *crl)
userCertificate = object; userCertificate = object;
break; break;
case CRL_OBJ_REVOCATION_DATE: case CRL_OBJ_REVOCATION_DATE:
revokedCert = malloc_thing(revokedCert_t); revokedCert = malloc_thing(revokedCert_t);
revokedCert->userCertificate = userCertificate; revokedCert->userCertificate = userCertificate;
revokedCert->revocationDate = parse_time(object, level); revokedCert->revocationDate = parse_time(object, level);
revokedCert->revocationReason = REASON_UNSPECIFIED; revokedCert->revocationReason = REASON_UNSPECIFIED;
crl->revokedCertificates->insert_last(crl->revokedCertificates, (void *)revokedCert); crl->revokedCertificates->insert_last(crl->revokedCertificates, (void *)revokedCert);
break; break;
case CRL_OBJ_CRL_ENTRY_EXTN_ID: case CRL_OBJ_CRL_ENTRY_EXTN_ID:
case CRL_OBJ_EXTN_ID: case CRL_OBJ_EXTN_ID:
@@ -284,9 +284,9 @@ bool parse_x509crl(chunk_t blob, u_int level0, private_crl_t *crl)
{ {
int extn_oid = known_oid(extnID); int extn_oid = known_oid(extnID);
if (extn_oid == OID_CRL_REASON_CODE) if (revokedCert && extn_oid == OID_CRL_REASON_CODE)
{ {
revokedCert->revocationReason = parse_crl_reasonCode(object); revokedCert->revocationReason = parse_crl_reasonCode(object);
} }
else if (extn_oid == OID_AUTHORITY_KEY_ID) else if (extn_oid == OID_AUTHORITY_KEY_ID)
{ {
+1 -1
View File
@@ -547,7 +547,7 @@ static status_t atodn(char *src, chunk_t *dn)
int rdn_count = 0; int rdn_count = 0;
int dn_len = 0; int dn_len = 0;
int whitespace = 0; int whitespace = 0;
int i; int i = 0;
asn1_t rdn_type; asn1_t rdn_type;
state_t state = SEARCH_OID; state_t state = SEARCH_OID;
status_t status = SUCCESS; status_t status = SUCCESS;