> ikev1 support for PKCS#7 wrapped certificates.

Great, looks fine, applied to master.

To keep the code clean (and avoid variable overloading), I have
refactored the IKEv1/IKEv2 certificate processing to several functions.

> +     container = cert_payload->get_container(cert_payload);
> +     if (container)
> +     {
> +             pkcs7_t *pkcs7;
> +             enumerator_t *enumerator;
> +
> +             pkcs7 = (pkcs7_t *)container;

While it isn't necessary in this case, it is good practice to check the
container type before casting it to pkcs7_t. I have added such a check
during refactoring.

Many thanks for the patch!

Best regards
Martin


_______________________________________________
Dev mailing list
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev

Reply via email to