From c16525ca812975bfa23f7cbe96c5e7f598a507d4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 24 Sep 1992 23:12:55 +0000 Subject: [PATCH] Added Sandia changes; password phrase changes, and FD_SET macros git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2390 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/krb5.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/include/krb5/krb5.h b/src/include/krb5/krb5.h index f0370f366..efd6fade7 100644 --- a/src/include/krb5/krb5.h +++ b/src/include/krb5/krb5.h @@ -248,4 +248,25 @@ typedef struct _krb5_priv_enc_part { #include #include +/* This is from Sandia */ +#ifndef FD_SET +#define FD_SETSIZE (sizeof (fd_set) * 8) + +#define FD_SET(f,s) ((s)->fds_bits[0] |= (1 << (f))) +#define FD_CLR(f,s) ((s)->fds_bits[0] &= ~(1 << (f))) +#define FD_ISSET(f,s) ((s)->fds_bits[0] & (1 << (f))) +#define FD_ZERO(s) ((s)->fds_bits[0] = 0) +#endif + +/* Sandia password generation structures */ +typedef struct _passwd_phrase_element { + krb5_data *passwd; + krb5_data *phrase; +} passwd_phrase_element; + +typedef struct _krb5_pwd_data { + int sequence_count; + passwd_phrase_element **element; +} krb5_pwd_data; + #endif /* KRB5_GENERAL__ */ -- 2.26.2