Cleaner handling of "cnid" in do_x509_check
authorViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 2 Sep 2015 01:59:08 +0000 (21:59 -0400)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 2 Sep 2015 14:02:10 +0000 (10:02 -0400)
commit40d5689458593aeca0d1a7f3591f7ccb48e459ac
treea16debf1f5baaf733ccc21844f6754c829d4bef0
parent39c76ceb2d3e51eaff95e04d6e4448f685718f8d
Cleaner handling of "cnid" in do_x509_check

Avoid using cnid = 0, use NID_undef instead, and return early instead
of trying to find an instance of that in the subject DN.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit fffc2faeb2b5cad4516cc624352d445284aa7522)
crypto/x509v3/v3_utl.c