Add tests for PKINIT using responder functionality
authorNalin Dahyabhai <nalin@dahyabhai.net>
Wed, 3 Jul 2013 21:10:55 +0000 (17:10 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 17 Jul 2013 18:57:13 +0000 (14:57 -0400)
commitd3d07c3b2f3710c520af5698c096f124cc90f916
tree707f42465deac7a141cedc745bdf104f4ec49ebe
parente87b20116528dd68299c7cb4783ba68bfe12a5f0
Add tests for PKINIT using responder functionality

We now also test that the PKINIT challenge looks like we expect it to
look, that PKINIT fails if we don't provide a response or a prompter
callback, and that PKINIT succeeds with a response provided using either
the raw responder API or the PKINIT responder functions.

One thing that we don't check is which specific error code we get when
PKINIT fails:  the OpenSSL and NSS versions return different error codes
(some mixture of EIO, ENOMEM, ENOENT, and KRB5KDC_ERR_PREAUTH_FAILED)
when they encounter trouble loading client credentials.

ticket: 7680
src/tests/t_authpkinit.py