diff options
Diffstat (limited to 'src/include/dkim.h')
-rw-r--r-- | src/include/dkim.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/include/dkim.h b/src/include/dkim.h index a74b785..64e2c59 100644 --- a/src/include/dkim.h +++ b/src/include/dkim.h @@ -89,11 +89,7 @@ typedef int (*DKIMHEADERCALLBACK)(const char *szHeader); // This function is called to retrieve a TXT record from DNS typedef int (*DKIMDNSCALLBACK)(const char *szFQDN, char *szBuffer, int nBufLen); -typedef struct DKIMContext_t { - unsigned int reserved1; - unsigned int reserved2; - void *reserved3; -} DKIMContext; +struct DKIMContext; typedef struct DKIMSignOptions_t { int nCanon; // canonization @@ -132,18 +128,22 @@ typedef struct DKIMVerifyDetails_t { int nResult; } DKIMVerifyDetails; -int DKIM_CALL DKIMSignInit(DKIMContext *pSignContext, DKIMSignOptions *pOptions); -int DKIM_CALL DKIMSignProcess(DKIMContext *pSignContext, char *szBuffer, int nBufLength); +struct DKIMContext *DKIMContextNew(); +void DKIMContextFree(struct DKIMContext *); + +int DKIM_CALL DKIMSignInit(struct DKIMContext *pSignContext, DKIMSignOptions *pOptions); +int DKIM_CALL DKIMSignProcess(struct DKIMContext *pSignContext, char *szBuffer, int nBufLength); int DKIM_CALL DKIMSignGetSig2( - DKIMContext *pSignContext, char *szRSAPrivKey, char *szECCPrivKey, char **pszSignature); -void DKIM_CALL DKIMSignFree(DKIMContext *pSignContext); + struct DKIMContext *pSignContext, char *szRSAPrivKey, char *szECCPrivKey, char **pszSignature); +void DKIM_CALL DKIMSignFree(struct DKIMContext *pSignContext); -int DKIM_CALL DKIMVerifyInit(DKIMContext *pVerifyContext, DKIMVerifyOptions *pOptions); -int DKIM_CALL DKIMVerifyProcess(DKIMContext *pVerifyContext, const char *szBuffer, int nBufLength); -int DKIM_CALL DKIMVerifyResults(DKIMContext *pVerifyContext); +int DKIM_CALL DKIMVerifyInit(struct DKIMContext *pVerifyContext, DKIMVerifyOptions *pOptions); +int DKIM_CALL DKIMVerifyProcess( + struct DKIMContext *pVerifyContext, const char *szBuffer, int nBufLength); +int DKIM_CALL DKIMVerifyResults(struct DKIMContext *pVerifyContext); int DKIM_CALL DKIMVerifyGetDetails( - DKIMContext *pVerifyContext, int *nSigCount, DKIMVerifyDetails **pDetails, char *szPractices); -void DKIM_CALL DKIMVerifyFree(DKIMContext *pVerifyContext); + struct DKIMContext *pVerifyContext, int *nSigCount, DKIMVerifyDetails **pDetails, char *szPractices); +void DKIM_CALL DKIMVerifyFree(struct DKIMContext *pVerifyContext); // const char *DKIM_CALL DKIMVersion(); |