dkim_sig_syntax()

[back to index]

SYNOPSIS
#include <dkim.h>

DKIM_STAT dkim_sig_syntax(
	DKIM *dkim,
	unsigned char *str,
	size_t len
);
Validates the syntax of a signature header, returning a result. The signature is not stored or used, only validated.

DESCRIPTION
Called When dkim_sig_syntax() can be called at any time.
ARGUMENTS
ArgumentDescription
dkim DKIM handle, returned by a prior call to dkim_sign() or dkim_verify().
str Pointer to a buffer containing the signature to be evaluated.
len Number of bytes available at str.
RETURN VALUES
Return ValueDescription
DKIM_STAT_OK The signature appeared to be syntactically valid.
DKIM_STAT_SYNTAX The signature did not appear to be syntactically valid.

Copyright (c) 2008 Sendmail, Inc. and its suppliers. All rights reserved.
Copyright (c) 2009, 2010, The Trusted Domain Project. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the respective licenses.