#include <stdlib.h>
#include <stdarg.h>
#include <arpa/inet.h>
-#include <libcitadel.h>
#define LIBCITADEL_VERSION_NUMBER 789
typedef struct ParsedURL ParsedURL;
struct ParsedURL {
StrBuf *URL;
+ StrBuf *UrlWithoutCred;
+ StrBuf *CurlCreds;
unsigned Port;
const char *Host;
const char *User;
const char *Pass;
const char *LocalPart;
+ const char *PlainUrl;
int IsIP;
int IPv6;
int af;
struct hostent *HEnt;
- struct in6_addr Addr;
+ struct sockaddr_in6 Addr;
ParsedURL *Next;
};
void FreeURL(ParsedURL** Url);
int ParseURL(ParsedURL **Url, StrBuf *UrlStr, unsigned short DefaultPort);
+void CurlPrepareURL(ParsedURL *Url);
/* tools */