diff options
author | kris <kris@FreeBSD.org> | 2000-05-15 04:20:54 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-05-15 04:20:54 +0000 |
commit | d8a32b7ba02191af5f53e9fc6d9b63fc39c7383b (patch) | |
tree | 4675dd70941926dbda62ed06d94f4c6d7863d3e7 /contrib/opie | |
parent | 85a224d8383c06cac609fb99e5729f78a232d286 (diff) | |
download | FreeBSD-src-d8a32b7ba02191af5f53e9fc6d9b63fc39c7383b.zip FreeBSD-src-d8a32b7ba02191af5f53e9fc6d9b63fc39c7383b.tar.gz |
Add some extra functions adapted from OpenBSD, in preparation for
OpenSSH OPIE support.
Diffstat (limited to 'contrib/opie')
-rw-r--r-- | contrib/opie/opie.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/opie/opie.h b/contrib/opie/opie.h index c41fabf..7ac9b21 100644 --- a/contrib/opie/opie.h +++ b/contrib/opie/opie.h @@ -64,8 +64,11 @@ struct opie { /* Maximum length of a seed */ #define OPIE_SEED_MAX 16 +/* Max length of hash algorithm name (md4/md5) */ +#define OPIE_HASHNAME_MAX 3 + /* Maximum length of a challenge (otp-md? 9999 seed) */ -#define OPIE_CHALLENGE_MAX (7+1+4+1+OPIE_SEED_MAX) +#define OPIE_CHALLENGE_MAX (4+OPIE_HASHNAME_MAX+1+4+1+OPIE_SEED_MAX) /* Maximum length of a response that we allow */ #define OPIE_RESPONSE_MAX (9+1+19+1+9+OPIE_SEED_MAX+1+19+1+19+1+19) @@ -105,6 +108,10 @@ int opieverify __P((struct opie *,char *)); int opiepasswd __P((struct opie *, int, char *, int, char *, char *)); char *opiereadpass __P((char *, int, int)); int opielogin __P((char *line, char *name, char *host)); +const char *opie_get_algorithm __P((void)); +int opie_haskey __P((char *username)); +char *opie_keyinfo __P((char *)); +int opie_passverify __P((char *username, char *passwd)); __END_DECLS #if _OPIE |