"Fossies" - the Fresh Open Source Software Archive

Member "irods-4.2.8/lib/api/include/authenticate.h" (14 May 2020, 766 Bytes) of package /linux/misc/irods-4.2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "authenticate.h" see the Fossies "Dox" file reference documentation.

    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;
   18 } AuthenticateInp_t;
   19 #define AuthenticateInp_PI "str *subOp; str *response; str *username;"
   20 
   21 typedef struct {
   22     char *challenge;
   23 } AuthenticateOut_t;
   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