1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* plugins/preauth/securid_sam2/extern.h */
4 * Copyright (C) 2010 by the Massachusetts Institute of Technology.
7 * Export of this software from the United States of America may
8 * require a specific license from the United States Government.
9 * It is the responsibility of any person or organization contemplating
10 * export to obtain such a license before exporting.
12 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13 * distribute this software and its documentation for any purpose and
14 * without fee is hereby granted, provided that the above copyright
15 * notice appear in all copies and that both that copyright notice and
16 * this permission notice appear in supporting documentation, and that
17 * the name of M.I.T. not be used in advertising or publicity pertaining
18 * to distribution of the software without specific, written prior
19 * permission. Furthermore if you modify this software you must label
20 * your software as modified software and not distribute it in such a
21 * fashion that it might be confused with the original M.I.T. software.
22 * M.I.T. makes no representations about the suitability of
23 * this software for any purpose. It is provided "as is" without express
24 * or implied warranty.
29 * Declarations for SecurID SAM2 plugin.
32 krb5_error_code sam_get_db_entry(krb5_context , krb5_principal,
33 int *, krb5_db_entry **);
35 krb5_error_code sam_make_challenge(krb5_context context,
36 krb5_sam_challenge_2_body *sc2b,
37 krb5_keyblock *cksum_key,
38 krb5_sam_challenge_2 *sc2_out);
40 krb5_error_code get_securid_edata_2(krb5_context context,
41 krb5_db_entry *client,
42 krb5_keyblock *client_key,
43 krb5_sam_challenge_2 *sc2);
45 krb5_error_code verify_securid_data_2(krb5_context context,
46 krb5_db_entry *client,
47 krb5_sam_response_2 *sr2,
48 krb5_enc_tkt_part *enc_tkt_reply,
50 krb5_sam_challenge_2 **sc2_out);
52 krb5_error_code get_grail_edata(krb5_context context, krb5_db_entry *client,
53 krb5_keyblock *client_key,
54 krb5_sam_challenge_2 *sc2_out);
56 krb5_error_code verify_grail_data(krb5_context context, krb5_db_entry *client,
57 krb5_sam_response_2 *sr2,
58 krb5_enc_tkt_part *enc_tkt_reply,
60 krb5_sam_challenge_2 **sc2_out);