Change order of ocsp uris when parsing a cert
authorThomas Egerer <thomas.egerer@secunet.com>
Fri, 4 Nov 2011 08:25:07 +0000 (09:25 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Nov 2011 10:11:17 +0000 (11:11 +0100)
src/libstrongswan/plugins/openssl/openssl_x509.c

index 73a1a28..5caf518 100644 (file)
@@ -751,7 +751,7 @@ static bool parse_authorityInfoAccess_ext(private_openssl_x509_t *this,
                                {
                                        if (asprintf(&uri, "%Y", id) > 0)
                                        {
-                                               this->ocsp_uris->insert_first(this->ocsp_uris, uri);
+                                               this->ocsp_uris->insert_last(this->ocsp_uris, uri);
                                        }
                                        id->destroy(id);
                                }