]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
x509: Use SHA-256 as default hash/signature algorithm for attribute certificates
authorTobias Brunner <tobias@strongswan.org>
Mon, 11 Nov 2024 16:30:16 +0000 (17:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 25 Nov 2024 15:52:35 +0000 (16:52 +0100)
References strongswan/strongswan#2523

src/libstrongswan/plugins/x509/x509_ac.c

index 2e370f5a713d1bd0b389c81e6b428ed3a295c971..3fc5de2f1186eddbbe8b353c928ca933eae3a873 100644 (file)
@@ -1156,7 +1156,7 @@ static void add_groups_from_list(private_x509_ac_t *this, linked_list_t *list)
  */
 x509_ac_t *x509_ac_gen(certificate_type_t type, va_list args)
 {
-       hash_algorithm_t digest_alg = HASH_SHA1;
+       hash_algorithm_t digest_alg = HASH_SHA256;
        private_x509_ac_t *ac;
 
        ac = create_empty();