doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
security.h
Go to the documentation of this file.
1 #ifndef __SECURITY_H
2 #define __SECURITY_H
3 /***************************************************************************
4  * _ _ ____ _
5  * Project ___| | | | _ \| |
6  * / __| | | | |_) | |
7  * | (__| |_| | _ <| |___
8  * \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * This software is licensed as described in the file COPYING, which
13  * you should have received as part of this distribution. The terms
14  * are also available at http://curl.haxx.se/docs/copyright.html.
15  *
16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17  * copies of the Software, and permit persons to whom the Software is
18  * furnished to do so, under the terms of the COPYING file.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  * $Id: security.h,v 1.9 2004/01/07 09:19:35 bagder Exp $
24  ***************************************************************************/
25 
26 /* this is a re-write */
27 
28 #include <stdarg.h>
29 #include "urldata.h" /* for struct connectdata * */
30 
32  const char *name;
33  size_t size;
34  int (*init)(void *);
35  int (*auth)(void *, struct connectdata *);
36  void (*end)(void *);
37  int (*check_prot)(void *, int);
38  int (*overhead)(void *, int, int);
39  int (*encode)(void *, void*, int, int, void**, struct connectdata *);
40  int (*decode)(void *, void*, int, int, struct connectdata *);
41 };
42 
43 
44 #define AUTH_OK 0
45 #define AUTH_CONTINUE 1
46 #define AUTH_ERROR 2
47 
49 
50 int Curl_sec_fflush_fd(struct connectdata *conn, int fd);
51 int Curl_sec_fprintf (struct connectdata *, FILE *, const char *, ...);
52 int Curl_sec_getc (struct connectdata *conn, FILE *);
53 int Curl_sec_putc (struct connectdata *conn, int, FILE *);
54 int Curl_sec_read (struct connectdata *conn, int, void *, int);
55 int Curl_sec_read_msg (struct connectdata *conn, char *, int);
56 
57 int Curl_sec_vfprintf(struct connectdata *, FILE *, const char *, va_list);
58 int Curl_sec_fprintf2(struct connectdata *conn, FILE *f, const char *fmt, ...);
59 int Curl_sec_vfprintf2(struct connectdata *conn, FILE *, const char *, va_list);
60 int Curl_sec_write (struct connectdata *conn, int, char *, int);
61 
62 void Curl_sec_end (struct connectdata *);
63 int Curl_sec_login (struct connectdata *);
64 void Curl_sec_prot (int, char **);
65 int Curl_sec_request_prot (struct connectdata *conn, const char *level);
67 void Curl_sec_status (void);
68 
69 enum protection_level Curl_set_command_prot(struct connectdata *,
70  enum protection_level);
71 
72 #endif
int Curl_sec_read_msg(struct connectdata *conn, char *, int)
int(* encode)(void *, void *, int, int, void **, struct connectdata *)
Definition: security.h:39
const char * name
Definition: security.h:32
void Curl_sec_end(struct connectdata *)
struct Curl_sec_client_mech Curl_krb4_client_mech
case const int
Definition: Callbacks.cpp:52
int Curl_sec_write(struct connectdata *conn, int, char *, int)
int Curl_sec_fprintf2(struct connectdata *conn, FILE *f, const char *fmt,...)
int Curl_sec_read(struct connectdata *conn, int, void *, int)
int Curl_sec_request_prot(struct connectdata *conn, const char *level)
int(* check_prot)(void *, int)
Definition: security.h:37
int(* init)(void *)
Definition: security.h:34
void Curl_sec_prot(int, char **)
GLuint GLuint end
Definition: glext.h:2845
int Curl_sec_fflush_fd(struct connectdata *conn, int fd)
void Curl_sec_set_protection_level(struct connectdata *conn)
int Curl_sec_vfprintf2(struct connectdata *conn, FILE *, const char *, va_list)
int Curl_sec_fprintf(struct connectdata *, FILE *, const char *,...)
int(* overhead)(void *, int, int)
Definition: security.h:38
int Curl_sec_vfprintf(struct connectdata *, FILE *, const char *, va_list)
int Curl_sec_getc(struct connectdata *conn, FILE *)
enum protection_level Curl_set_command_prot(struct connectdata *, enum protection_level)
tuple f
Definition: idal.py:89
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void Curl_sec_status(void)
GLint level
Definition: glext.h:2878
int(* auth)(void *, struct connectdata *)
Definition: security.h:35
int(* decode)(void *, void *, int, int, struct connectdata *)
Definition: security.h:40
int Curl_sec_putc(struct connectdata *conn, int, FILE *)
int Curl_sec_login(struct connectdata *)