2010-06-03 21:24:43 +08:00
|
|
|
/*
|
|
|
|
* rc.h
|
|
|
|
*
|
|
|
|
* Created on: Mar 5, 2009
|
|
|
|
* Author: rikki
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RC_H_
|
|
|
|
#define RC_H_
|
|
|
|
|
2010-06-24 17:43:53 +08:00
|
|
|
struct OCproxy {
|
|
|
|
char *host;
|
|
|
|
int port;
|
|
|
|
char *user;
|
|
|
|
char *password;
|
|
|
|
};
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
extern int dods_compress;
|
|
|
|
extern int dods_verify;
|
|
|
|
extern struct OCproxy *pstructProxy;
|
|
|
|
extern char *cook;
|
|
|
|
extern char *userName;
|
|
|
|
extern char *password;
|
|
|
|
|
|
|
|
extern int credentials_in_url(const char *url);
|
|
|
|
extern int extract_credentials(const char *url, char **name, char **pw, char **result_url);
|
2010-06-24 17:43:53 +08:00
|
|
|
extern int set_credentials(const char *name, const char *pw);
|
|
|
|
extern int read_dodsrc(char *in_file_name);
|
2010-06-03 21:24:43 +08:00
|
|
|
extern int write_dodsrc(char *out_file_name);
|
|
|
|
|
2010-06-24 17:43:53 +08:00
|
|
|
extern int set_user_password(CURL* curl, const char *userC,
|
|
|
|
const char *passwordC);
|
|
|
|
extern int set_proxy(CURL* curl, struct OCproxy *pstructProxy);
|
2010-06-03 21:24:43 +08:00
|
|
|
extern int set_cookies(CURL* curl, const char *cook);
|
|
|
|
extern int set_verify(CURL* curl);
|
|
|
|
extern int set_compression(CURL* curl);
|
|
|
|
|
|
|
|
#endif /* RC_H_ */
|