]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify and fix k5_check_cert_address
authorGreg Hudson <ghudson@mit.edu>
Tue, 3 Jun 2014 15:48:13 +0000 (11:48 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 12 Jun 2014 16:23:42 +0000 (12:23 -0400)
commitb6ec31e4e599db867ff19beef3be9b0bfa5b70eb
treed77e220bc1bda2833680b0d9b1a0b969058afa22
parente161636590429aa78a3f04a8bbe0a36dda48a8ab
Simplify and fix k5_check_cert_address

Get rid of the address union.  Store the result of get_cert_cn in a
signed variable so we can meaningfully check for negative results.
Make get_cert_cn return int for consistency with
X509_NAME_get_text_by_NID and its two callers.

Also add an emacs mode line to the top of the file.

ticket: 7929
src/lib/krb5/os/checkhost.c