gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS gsasl/lib/digest-md5


From: gsasl-commit
Subject: CVS gsasl/lib/digest-md5
Date: Sun, 19 Dec 2004 03:06:37 +0100

Update of /home/cvs/gsasl/lib/digest-md5
In directory dopio:/tmp/cvs-serv30771

Modified Files:
        parser.h 
Log Message:
Use tokens.h.


--- /home/cvs/gsasl/lib/digest-md5/parser.h     2004/12/19 01:45:40     1.3
+++ /home/cvs/gsasl/lib/digest-md5/parser.h     2004/12/19 02:06:37     1.4
@@ -20,103 +20,15 @@
  *
  */
 
-/* Get size_t. */
-#include <stddef.h>
-
-/*
- * digest-challenge  =
- *       1#( realm | nonce | qop-options | stale | server_maxbuf | charset
- *             algorithm | cipher-opts | auth-param )
- *
- * realm             = "realm" "=" <"> realm-value <">
- * realm-value       = qdstr-val
- * nonce             = "nonce" "=" <"> nonce-value <">
- * nonce-value       = *qdtext
- * qop-options       = "qop" "=" <"> qop-list <">
- * qop-list          = 1#qop-value
- * qop-value         = "auth" | "auth-int" | "auth-conf" | qop-token
- *                    ;; qop-token is reserved for identifying future
- *                    ;; extensions to DIGEST-MD5
- * qop-token         = token
- * stale             = "stale" "=" "true"
- * server_maxbuf     = "maxbuf" "=" maxbuf-value
- * maxbuf-value      = 1*DIGIT
- * charset           = "charset" "=" "utf-8"
- * algorithm         = "algorithm" "=" "md5-sess"
- * cipher-opts       = "cipher" "=" <"> 1#cipher-value <">
- * cipher-value      = "3des" | "des" | "rc4-40" | "rc4" |
- *                     "rc4-56" | "aes-cbc" | cipher-token
- *                     ;; "des" and "3des" ciphers are obsolete.
- *                     ;; cipher-token is reserved for new ciphersuites
- * cipher-token      = token
- * auth-param        = token "=" ( token | quoted-string )
- *
- */
-struct digest_md5_challenge {
-  size_t nrealms;
-  char **realms;
-  char *nonce;
-  char *qop;
-  int stale;
-  unsigned long servermaxbuf;
-  int utf8;
-  char *ciphers;
-};
-typedef struct digest_md5_challenge digest_md5_challenge;
-
-/*
- * digest-response  = 1#( username | realm | nonce | cnonce |
- *                        nonce-count | qop | digest-uri | response |
- *                        client_maxbuf | charset | cipher | authzid |
- *                        auth-param )
- *
- *     username         = "username" "=" <"> username-value <">
- *     username-value   = qdstr-val
- *     cnonce           = "cnonce" "=" <"> cnonce-value <">
- *     cnonce-value     = *qdtext
- *     nonce-count      = "nc" "=" nc-value
- *     nc-value         = 8LHEX
- *     client_maxbuf    = "maxbuf" "=" maxbuf-value
- *     qop              = "qop" "=" qop-value
- *     digest-uri       = "digest-uri" "=" <"> digest-uri-value <">
- *     digest-uri-value  = serv-type "/" host [ "/" serv-name ]
- *     serv-type        = 1*ALPHA
- *     serv-name        = host
- *     response         = "response" "=" response-value
- *     response-value   = 32LHEX
- *     LHEX             = "0" | "1" | "2" | "3" |
- *                        "4" | "5" | "6" | "7" |
- *                        "8" | "9" | "a" | "b" |
- *                        "c" | "d" | "e" | "f"
- *     cipher           = "cipher" "=" cipher-value
- *     authzid          = "authzid" "=" <"> authzid-value <">
- *     authzid-value    = qdstr-val
- *
- */
-struct digest_md5_response {
-  char *username;
-  char *realm;
-  char *nonce;
-  char *cnonce;
-  unsigned long nc;
-  char *qop;
-  char *digesturi;
-  char *response;
-  unsigned long clientmaxbuf;
-  int utf8;
-  char *cipher;
-  char *authzid;
-};
-typedef struct digest_md5_response digest_md5_response;
+#ifndef DIGEST_MD5_PARSER_H
+# define DIGEST_MD5_PARSER_H
 
+/* Get token types. */
+#include "tokens.h"
 
-/*
- * response-auth = "rspauth" "=" response-value
- */
-struct digest_md5_finish {
-  char *rspauth;
-};
-typedef struct digest_md5_finish digest_md5_finish;
+extern int digest_md5_getsubopt (char **optionp,
+                                const char *const *tokens,
+                                char **valuep);
 
 extern int digest_md5_parse_challenge (const char *challenge,
                                       digest_md5_challenge *out);
@@ -129,3 +41,5 @@
 
 extern int digest_md5_validate (digest_md5_challenge *c,
                                digest_md5_response *r);
+
+#endif /* DIGEST_MD5_PARSER_H */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]