summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1998-03-11 17:48:09 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1998-03-11 17:48:09 +0000
commit69de3a9e357327c17caa3b7bb058035e263573bc (patch)
treef6260f228c4d949b174128d017a7e323c7122f32 /gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h
parentb81973f175db7d3f4c763069b191dd57f4bd83d3 (diff)
Lynx 2.8
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h')
-rw-r--r--gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h
new file mode 100644
index 00000000000..6dc4c51616d
--- /dev/null
+++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTAuth.h
@@ -0,0 +1,66 @@
+/* AUTHENTICATION MODULE
+
+ This is the authentication module. By modifying the function HTAA_authenticate() it can
+ be made to support external authentication methods.
+
+ */
+
+#ifndef HTAUTH_H
+#define HTAUTH_H
+
+#ifndef HTUTILS_H
+#include "HTUtils.h"
+#endif /* HTUTILS_H */
+#include "HTAAUtil.h"
+#include "HTAAProt.h"
+
+
+#ifdef SHORT_NAMES
+#define HTAAauth HTAA_authenticate
+#endif /* SHORT_NAMES */
+
+
+/*
+** Server's representation of a user (fields in authentication string)
+*/
+typedef struct {
+ HTAAScheme scheme; /* Scheme used to authenticate this user */
+ char * username;
+ char * password;
+ char * inet_addr;
+ char * timestamp;
+ char * secret_key;
+} HTAAUser;
+/*
+
+User Authentication
+
+ */
+
+/* SERVER PUBLIC HTAA_authenticate()
+** AUTHENTICATE USER
+** ON ENTRY:
+** scheme used authentication scheme.
+** scheme_specifics the scheme specific parameters
+** (authentication string for Basic and
+** Pubkey schemes).
+** prot is the protection information structure
+** for the file.
+**
+** ON EXIT:
+** returns NULL, if authentication failed.
+** Otherwise a pointer to a structure
+** representing authenticated user,
+** which should not be freed.
+*/
+PUBLIC HTAAUser *HTAA_authenticate PARAMS((HTAAScheme scheme,
+ char * scheme_specifics,
+ HTAAProt * prot));
+/*
+
+ */
+
+#endif /* not HTAUTH_H */
+/*
+
+ End of file HTAuth.h. */