Fixed compiler warnings in openssl plugin
authorMartin Willi <martin@revosec.ch>
Wed, 7 Sep 2011 12:23:27 +0000 (14:23 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 Sep 2011 12:23:27 +0000 (14:23 +0200)
src/libstrongswan/plugins/openssl/openssl_crl.c
src/libstrongswan/plugins/openssl/openssl_util.c

index 58401fa..9a9efb2 100644 (file)
@@ -185,7 +185,7 @@ METHOD(crl_t, create_enumerator, enumerator_t*,
                free(enumerator);
                return enumerator_create_empty();
        }
-       enumerator->num = sk_X509_EXTENSION_num(enumerator->stack);
+       enumerator->num = sk_X509_REVOKED_num(enumerator->stack);
        return &enumerator->public;
 }
 
index 99dca36..1eb1c67 100644 (file)
@@ -130,7 +130,7 @@ chunk_t openssl_asn1_obj2chunk(ASN1_OBJECT *asn1)
 {
        if (asn1)
        {
-               return chunk_create(asn1->data, asn1->length);
+               return chunk_create((u_char*)asn1->data, asn1->length);
        }
        return chunk_empty;
 }