Make it easier to test SAM-2 client code
authorGreg Hudson <ghudson@mit.edu>
Thu, 26 Apr 2012 21:47:05 +0000 (21:47 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 26 Apr 2012 21:47:05 +0000 (21:47 +0000)
commitce3ba8ba7670b57ffb2b1e2707f0cb443e900b0f
tree4bfddb7ae5223ba7523d0f4076c55a9464ac414b
parentd93166972447594f3431edfa3ef2db946bfcc24e
Make it easier to test SAM-2 client code

Add a method to the securid_sam2 plugin, built with alternate
compile-time flags, which supplies a plain-text challenge to the
client to be used as the OTP value.  This lets us manually exercise
the SAM-2 client code and a little bit of the KDC code.

securid_make_sam_challenge_2_and_cksum is moved into the method-
independent code and renamed.  get_securid_edata_2 has its sc2b
parameter removed as it was not used by the caller.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25832 dc483132-0cff-0310-8789-dd5450dbe970
src/plugins/preauth/securid_sam2/Makefile.in
src/plugins/preauth/securid_sam2/extern.h
src/plugins/preauth/securid_sam2/grail.c [new file with mode: 0644]
src/plugins/preauth/securid_sam2/securid2.c
src/plugins/preauth/securid_sam2/securid_sam2.exports
src/plugins/preauth/securid_sam2/securid_sam2_main.c