irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

authenticate.h
Go to the documentation of this file.
1 #ifndef AUTHENTICATE_H__
2 #define AUTHENTICATE_H__
3 
4 #include "rcConnect.h"
5 
6 #define AUTH_SUBOP_REQ_AUTH "request challenge"
7 #define AUTH_SUBOP_RESP "challenge response"
8 
9 #define MAX_PASSWORD_LEN 50
10 #define CHALLENGE_LEN 64 // 64 bytes of data and terminating null
11 #define RESPONSE_LEN 16 // 16 bytes of data and terminating null
12 
13 
14 typedef struct {
15  char *subOp;
16  char *response;
17  char *username;
19 #define AuthenticateInp_PI "str *subOp; str *response; str *username;"
20 
21 typedef struct {
22  char *challenge;
24 #define AuthenticateOut_PI "str *challenge;"
25 
26 
27 #ifdef __cplusplus
28 extern "C"
29 #endif
30 int rcAuthenticate( rcComm_t *conn, AuthenticateInp_t *authenticateInp, AuthenticateOut_t **authenticateOut );
31 
32 #endif
rcComm_t
Definition: rcConnect.h:95
AuthenticateOut_t
Definition: authenticate.h:21
rcConnect.h
AuthenticateInp_t::subOp
char * subOp
Definition: authenticate.h:15
AuthenticateInp_t::response
char * response
Definition: authenticate.h:16
AuthenticateInp_t
Definition: authenticate.h:14
AuthenticateOut_t::challenge
char * challenge
Definition: authenticate.h:22
AuthenticateInp_t::username
char * username
Definition: authenticate.h:17
rcAuthenticate
int rcAuthenticate(rcComm_t *conn, AuthenticateInp_t *authenticateInp, AuthenticateOut_t **authenticateOut)