Added Sandia changes; password phrase changes, and FD_SET macros
authorTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:12:55 +0000 (23:12 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 24 Sep 1992 23:12:55 +0000 (23:12 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2390 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/krb5.h

index f0370f36610644a49712f5c5a87e505441736218..efd6fade7edb8ccaa34f4f8e4a50d6629eae8f78 100644 (file)
@@ -248,4 +248,25 @@ typedef struct _krb5_priv_enc_part {
 #include <krb5/func-proto.h>
 #include <krb5/free.h>
 
+/* 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__ */