1 /***************************************************************************/ 2 /* This code is part of WWW grabber called pavuk */ 3 /* Copyright (c) 1997 - 2001 Stefan Ondrejicka */ 4 /* Distributed under GPL 2 or later */ 5 /***************************************************************************/ 6 7 #ifndef _digest_auth_h_ 8 #define _digest_auth_h_ 9 10 #include "url.h" 11 #include "doc.h" 12 13 typedef struct 14 { 15 char *nonce; 16 char *opaque; 17 char *realm; 18 char *site; 19 unsigned short port; 20 } http_digest_info; 21 22 extern http_digest_info *http_digest_parse(char *); 23 extern void http_digest_deep_free(http_digest_info *); 24 extern char *http_get_digest_auth_str(http_digest_info *, char *, char *, 25 char *, url *, char *, size_t); 26 extern int http_digest_do_proxy_auth(doc *, char *); 27 extern int http_digest_do_auth(doc *, char *); 28 29 #endif 30