1
0
Fork 0
mbuni/mbuni/mmlib/mms_detokenize.h

30 lines
1.0 KiB
C

#ifndef __MMS_DETOKENIZE_INCLUDED__
#define __MMS_DETOKENIZE_INCLUDED__
#include <time.h>
#include "gwlib/gwlib.h"
/* Detokenizer module. This file provides prototypes for all detokenizer functions.
* The idea is that for each site a DSO will be created that can resolve a token into an
* msisdn. This is useful if you're creating a multioperator setup or if your wap gateway
* doesn't pass the MSISDN as a header and you want to secure yourself against MSISDN spoofing
*/
typedef struct MmsDetokenizerFuncStruct {
/* This function is called once to initialise the detokenizer module. Return 0 on succeful
* initialization.
*/
int (*mms_detokenizer_init)(char *settings);
/* Looks up the token and returns the msisdn as a new Octstr.
* Return NULL on error, otherwise an Octstr
*/
Octstr *(*mms_detokenize)(Octstr * token);
int (*mms_detokenizer_fini)(void);
} MmsDetokenizerFuncStruct;
extern MmsDetokenizerFuncStruct mms_detokenizefuncs; /* The module must expose this symbol. */
#endif