2 * $DragonFly: src/lib/libskey/skey.h,v 1.3 2003/11/12 20:21:31 eirikn Exp $
10 /* Server-side data structure for reading keys file during login */
18 long recstart
; /*needed so reread of buffer is efficient*/
22 /* Client-side structure for scanning data stream for challenge */
29 #define atob8 _sk_atob8
30 #define btoa8 _sk_btoa8
35 #define keycrunch _sk_keycrunch
37 #define readpass _sk_readpass
39 #define sevenbit _sk_sevenbit
42 int keycrunch (char *result
,const char *seed
,const char *passwd
);
43 char *btoe (char *engout
,char *c
);
44 char *put8 (char *out
,char *s
);
45 int atob8 (char *out
, char *in
);
46 int btoa8 (char *out
, char *in
);
48 int etob (char *out
,char *e
);
49 void sevenbit (char *s
);
50 char *readpass (char *buf
, int n
);
52 #endif /* _SKEY_INTERNAL */
54 /* Simplified application programming interface. */
56 int skeylookup (struct skey
*mp
, const char *name
);
57 int skeyverify (struct skey
*mp
, char *response
);
58 int skeychallenge (struct skey
*mp
, const char *name
, char *challenge
);
59 int skeyinfo (struct skey
*mp
, const char* name
, char *ss
);
60 int skeyaccess (char *user
, const char *port
, const char *host
, const char *addr
);
61 char *skey_getpass (const char *prompt
, struct passwd
* pwd
, int pwok
);
62 const char *skey_crypt (char *pp
, char *salt
, struct passwd
*pwd
, int pwok
);