nfs-ganesha 1.4
|
00001 #ifndef _TOOLS_GSS_H 00002 #define _TOOLS_GSS_H 00003 00004 /* Un tas d'include pour avoir les bindings standards */ 00005 #include <sys/time.h> 00006 #include <stdlib.h> 00007 #include <stdio.h> 00008 #include <string.h> 00009 #include <ctype.h> 00010 #include <unistd.h> 00011 #include <fcntl.h> 00012 #include <errno.h> 00013 #include <signal.h> 00014 #include <sys/socket.h> 00015 #include <netdb.h> 00016 #include <netinet/in.h> 00017 #include <netinet/tcp.h> 00018 00019 #include "aglae.h" /* Mes routines de gestion des logs */ 00020 #include <dce/gssapi.h> /* Header de la gssapi */ 00021 00022 #define TOKEN_NOOP (1<<0) 00023 #define TOKEN_CONTEXT (1<<1) 00024 #define TOKEN_DATA (1<<2) 00025 #define TOKEN_MIC (1<<3) 00026 #define TOKEN_CONTEXT_NEXT (1<<4) 00027 #define TOKEN_WRAPPED (1<<5) 00028 #define TOKEN_ENCRYPTED (1<<6) 00029 #define TOKEN_SEND_MIC (1<<7) 00030 #define TOKEN_NOOP (1<<0) 00031 #define TOKEN_CONTEXT (1<<1) 00032 #define TOKEN_DATA (1<<2) 00033 #define TOKEN_MIC (1<<3) 00034 #define TOKEN_CONTEXT_NEXT (1<<4) 00035 #define TOKEN_WRAPPED (1<<5) 00036 #define TOKEN_ENCRYPTED (1<<6) 00037 #define TOKEN_SEND_MIC (1<<7) 00038 00039 void sperror_gss(char *str, OM_uint32 major, OM_uint32 minor); 00040 00041 int write_tok(int s, gss_buffer_t tok); 00042 int read_tok(int s, gss_buffer_t tok); 00043 int recv_msg(int fd, char *msg, gss_ctx_id_t context, char *errbuf); 00044 int send_msg(int fd, char *msg, gss_ctx_id_t context, char *errbuf); 00045 int recv_token(int s, int *flags, gss_buffer_t tok); 00046 int send_token(int s, int flags, gss_buffer_t tok) 00047 #endif