Go to the documentation of this file.00001 #ifndef HEADER_CURL_SECURITY_H
00002 #define HEADER_CURL_SECURITY_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 struct Curl_sec_client_mech {
00026 const char *name;
00027 size_t size;
00028 int (*init)(void *);
00029 int (*auth)(void *, struct connectdata *);
00030 void (*end)(void *);
00031 int (*check_prot)(void *, int);
00032 int (*overhead)(void *, int, int);
00033 int (*encode)(void *, const void *, int, int, void **);
00034 int (*decode)(void *, void *, int, int, struct connectdata *);
00035 };
00036
00037 #define AUTH_OK 0
00038 #define AUTH_CONTINUE 1
00039 #define AUTH_ERROR 2
00040
00041 #ifdef HAVE_GSSAPI
00042 int Curl_sec_read_msg(struct connectdata *conn, char *,
00043 enum protection_level);
00044 void Curl_sec_end(struct connectdata *);
00045 CURLcode Curl_sec_login(struct connectdata *);
00046 int Curl_sec_request_prot(struct connectdata *conn, const char *level);
00047
00048 extern struct Curl_sec_client_mech Curl_krb5_client_mech;
00049 #endif
00050
00051 #endif