Path: blob/main/crypto/krb5/src/plugins/preauth/securid_sam2/extern.h
34889 views
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */1/* plugins/preauth/securid_sam2/extern.h */2/*3* Copyright (C) 2010 by the Massachusetts Institute of Technology.4* All rights reserved.5*6* Export of this software from the United States of America may7* require a specific license from the United States Government.8* It is the responsibility of any person or organization contemplating9* export to obtain such a license before exporting.10*11* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and12* distribute this software and its documentation for any purpose and13* without fee is hereby granted, provided that the above copyright14* notice appear in all copies and that both that copyright notice and15* this permission notice appear in supporting documentation, and that16* the name of M.I.T. not be used in advertising or publicity pertaining17* to distribution of the software without specific, written prior18* permission. Furthermore if you modify this software you must label19* your software as modified software and not distribute it in such a20* fashion that it might be confused with the original M.I.T. software.21* M.I.T. makes no representations about the suitability of22* this software for any purpose. It is provided "as is" without express23* or implied warranty.24*/2526/*27*28* Declarations for SecurID SAM2 plugin.29*/3031krb5_error_code sam_get_db_entry(krb5_context , krb5_principal,32int *, krb5_db_entry **);3334krb5_error_code sam_make_challenge(krb5_context context,35krb5_sam_challenge_2_body *sc2b,36krb5_keyblock *cksum_key,37krb5_sam_challenge_2 *sc2_out);3839krb5_error_code get_securid_edata_2(krb5_context context,40krb5_db_entry *client,41krb5_keyblock *client_key,42krb5_sam_challenge_2 *sc2);4344krb5_error_code verify_securid_data_2(krb5_context context,45krb5_db_entry *client,46krb5_sam_response_2 *sr2,47krb5_enc_tkt_part *enc_tkt_reply,48krb5_pa_data *pa,49krb5_sam_challenge_2 **sc2_out);5051krb5_error_code get_grail_edata(krb5_context context, krb5_db_entry *client,52krb5_keyblock *client_key,53krb5_sam_challenge_2 *sc2_out);5455krb5_error_code verify_grail_data(krb5_context context, krb5_db_entry *client,56krb5_sam_response_2 *sr2,57krb5_enc_tkt_part *enc_tkt_reply,58krb5_pa_data *pa,59krb5_sam_challenge_2 **sc2_out);606162