generalized get_ca_certificate() to get_auth_certificate(auth_flags)
[strongswan.git] / src / charon / encoding / payloads / certreq_payload.c
index ea465fd..55f04c5 100644 (file)
@@ -274,7 +274,7 @@ certreq_payload_t *certreq_payload_create_from_cacert(identification_t *id)
        chunk_t keyid;
        certreq_payload_t *this;
        
-       cacert = charon->credentials->get_ca_certificate(charon->credentials, id);
+       cacert = charon->credentials->get_auth_certificate(charon->credentials, AUTH_CA, id);
        if (cacert == NULL)
        {
                /* no such CA cert */