#include <stdint.h>
#include <time.h>
#include "str.h"
#include "case.h"
#include "stralloc.h"
Go to the source code of this file.
◆ SRS0TAG
◆ SRS1TAG
◆ SRS_EBADTIMESTAMPCHAR
◆ SRS_EHASHINVALID
◆ SRS_EHASHTOOSHORT
◆ SRS_ENOSECRETS
◆ SRS_ENOSENDERATSIGN
| #define SRS_ENOSENDERATSIGN (3) |
◆ 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_EOUTOFMEMORY
◆ SRS_ERROR_TYPE
◆ SRS_ERRTYPE_CONFIG
| #define SRS_ERRTYPE_CONFIG 0x1000 |
◆ SRS_ERRTYPE_MASK
| #define SRS_ERRTYPE_MASK 0xf000 |
◆ SRS_ERRTYPE_NONE
| #define SRS_ERRTYPE_NONE 0x0000 |
◆ SRS_ERRTYPE_OPER
| #define SRS_ERRTYPE_OPER 0x2000 |
◆ SRS_ERRTYPE_SRS
| #define SRS_ERRTYPE_SRS 0x8000 |
◆ SRS_ERRTYPE_SYNTAX
| #define SRS_ERRTYPE_SYNTAX 0x4000 |
◆ SRS_ESEPARATORINVALID
◆ SRS_ETIMESTAMPOUTOFDATE
◆ SRS_HASHLEN
◆ SRS_IS_SRS_ADDRESS
| #define SRS_IS_SRS_ADDRESS |
( |
|
x | ) |
|
Value: ( \
(case_diffb((x),3,"SRS") == 0) && \
(str_chr("01", (x)[3]) != 2) && \
(str_chr("-+=", (x)[4]) != 4) \
)
Definition at line 55 of file srsq.h.
◆ SRS_SUCCESS
◆ SRSDEL
◆ SRSSEP
| #define X |
( |
|
e, |
|
|
|
s |
|
) |
| if (code == e) return s; |
◆ srs_check_timestamp()
| int srs_check_timestamp |
( |
srs_ctx * |
srs, |
|
|
char * |
stamp |
|
) |
| |
◆ srs_create_timestamp()
| int srs_create_timestamp |
( |
char * |
buf, |
|
|
time_t |
now |
|
) |
| |
◆ srs_errorstr()
| const char * srs_errorstr |
( |
int |
code | ) |
|
◆ srs_forward()
| int srs_forward |
( |
srs_ctx * |
srs, |
|
|
stralloc * |
srsaddr, |
|
|
const char * |
sender, |
|
|
const char * |
alias |
|
) |
| |
◆ srs_init()
◆ srs_reverse()
| int srs_reverse |
( |
srs_ctx * |
srs, |
|
|
stralloc * |
srsaddr, |
|
|
char * |
inaddr |
|
) |
| |