#include <stdint.h>
#include <time.h>
Go to the source code of this file.
|  | 
| int | srs_set_malloc (srs_malloc_t m, srs_realloc_t r, srs_free_t f) | 
| srs_t * | srs_new () | 
| void | srs_init (srs_t *) | 
| void | srs_free (srs_t *) | 
| int | srs_forward (srs_t *, char *, int, const char *, const char *) | 
| int | srs_forward_alloc (srs_t *, char **, const char *, const char *) | 
| int | srs_reverse (srs_t *, char *, int, const char *) | 
| int | srs_reverse_alloc (srs_t *, char **, const char *) | 
| const char * | srs_strerror (int) | 
| int | srs_add_secret (srs_t *, const char *) | 
| const char * | srs_get_secret (srs_t *, int) | 
| int | srs_timestamp_create (srs_t *, char *, time_t) | 
| int | srs_timestamp_check (srs_t *, const char *) | 
◆ FALSE
◆ SRS0TAG
◆ SRS1TAG
◆ SRS_EBADTIMESTAMPCHAR
◆ SRS_EBUFTOOSMALL
◆ SRS_EHASHINVALID
◆ SRS_EHASHTOOSHORT
◆ SRS_ENOSECRETS
◆ SRS_ENOSENDERATSIGN
◆ SRS_ENOSRS0HASH
◆ SRS_ENOSRS0HOST
◆ SRS_ENOSRS0STAMP
◆ SRS_ENOSRS0USER
◆ SRS_ENOSRS1HASH
◆ SRS_ENOSRS1HOST
◆ SRS_ENOSRS1USER
◆ SRS_ENOTREWRITTEN
      
        
          | #define SRS_ENOTREWRITTEN   (2) | 
      
 
 
◆ SRS_ENOTSRSADDRESS
      
        
          | #define SRS_ENOTSRSADDRESS   (1) | 
      
 
 
◆ SRS_ERROR_TYPE
      
        
          | #define SRS_ERROR_TYPE | ( |  | x | ) |  | 
      
 
Value:
Definition at line 63 of file srs2.h.
 
 
◆ SRS_ERRTYPE_CONFIG
      
        
          | #define SRS_ERRTYPE_CONFIG   0x1000 | 
      
 
 
◆ SRS_ERRTYPE_INPUT
      
        
          | #define SRS_ERRTYPE_INPUT   0x2000 | 
      
 
 
◆ SRS_ERRTYPE_MASK
      
        
          | #define SRS_ERRTYPE_MASK   0xf000 | 
      
 
 
◆ SRS_ERRTYPE_NONE
      
        
          | #define SRS_ERRTYPE_NONE   0x0000 | 
      
 
 
◆ SRS_ERRTYPE_SRS
      
        
          | #define SRS_ERRTYPE_SRS   0x8000 | 
      
 
 
◆ SRS_ERRTYPE_SYNTAX
      
        
          | #define SRS_ERRTYPE_SYNTAX   0x4000 | 
      
 
 
◆ SRS_ESEPARATORINVALID
◆ SRS_ETIMESTAMPOUTOFDATE
◆ SRS_IS_SRS_ADDRESS
      
        
          | #define SRS_IS_SRS_ADDRESS | ( |  | x | ) |  | 
      
 
Value:  ( \
  (strncasecmp((x),"SRS",3) == 0) && \
  (strchr("01", (x)[3]) != NULL) && \
  (strchr("-+=", (x)[4]) != NULL) \
)
Definition at line 67 of file srs2.h.
 
 
◆ SRS_PARAM_DECLARE
      
        
          | #define SRS_PARAM_DECLARE | ( |  | n, | 
        
          |  |  |  | t ) | 
      
 
Value:  int srs_set_ ## n (
srs_t *srs, t value); \
 
  t srs_get_ ## n (
srs_t *srs);
Definition at line 114 of file srs2.h.
 
 
◆ SRS_SUCCESS
◆ SRSSEP
◆ TRUE
◆ srs_bool
◆ srs_free_t
      
        
          | typedef void(* srs_free_t) (void *) | 
      
 
 
◆ srs_malloc_t
      
        
          | typedef void *(* srs_malloc_t) (size_t) | 
      
 
 
◆ srs_realloc_t
      
        
          | typedef void *(* srs_realloc_t) (void *, size_t) | 
      
 
 
◆ srs_t
◆ srs_add_secret()
      
        
          | int srs_add_secret | ( | srs_t * | srs, | 
        
          |  |  | const char * | secret ) | 
      
 
 
◆ srs_forward()
      
        
          | int srs_forward | ( | srs_t * | srs, | 
        
          |  |  | char * | buf, | 
        
          |  |  | int | buflen, | 
        
          |  |  | const char * | sender, | 
        
          |  |  | const char * | alias ) | 
      
 
 
◆ srs_forward_alloc()
      
        
          | int srs_forward_alloc | ( | srs_t * | srs, | 
        
          |  |  | char ** | sptr, | 
        
          |  |  | const char * | sender, | 
        
          |  |  | const char * | alias ) | 
      
 
 
◆ srs_free()
      
        
          | void srs_free | ( | srs_t * | srs | ) |  | 
      
 
 
◆ srs_get_secret()
      
        
          | const char * srs_get_secret | ( | srs_t * | srs, | 
        
          |  |  | int | idx ) | 
      
 
 
◆ srs_init()
      
        
          | void srs_init | ( | srs_t * | srs | ) |  | 
      
 
 
◆ srs_new()
◆ srs_reverse()
      
        
          | int srs_reverse | ( | srs_t * | srs, | 
        
          |  |  | char * | buf, | 
        
          |  |  | int | buflen, | 
        
          |  |  | const char * | sender ) | 
      
 
 
◆ srs_reverse_alloc()
      
        
          | int srs_reverse_alloc | ( | srs_t * | srs, | 
        
          |  |  | char ** | sptr, | 
        
          |  |  | const char * | sender ) | 
      
 
 
◆ srs_set_malloc()
◆ srs_strerror()
      
        
          | const char * srs_strerror | ( | int | code | ) |  | 
      
 
 
◆ srs_timestamp_check()
      
        
          | int srs_timestamp_check | ( | srs_t * | srs, | 
        
          |  |  | const char * | stamp ) | 
      
 
 
◆ srs_timestamp_create()
      
        
          | int srs_timestamp_create | ( | srs_t * | srs, | 
        
          |  |  | char * | buf, | 
        
          |  |  | time_t | now ) |