opendmarc_policy_fetch_sp()

[back to index]

SYNOPSIS
#include <dmarc.h>
OPENDMARC_STATUS_T opendmarc_policy_fetch_sp(
	DMARC_POLICY_T *pctx,
	int *p
);
Query the library to find the sp= value from the DMARC record.
DESCRIPTION
Called When opendmarc_policy_fetch_sp() is called after the DMARC record has been fetched and parsed.
ARGUMENTS
ArgumentDescription
pctx The address of a structure of type DMARC_POLICY_T as returned from opendmarc_policy_connect_init().
sp The address of an integer to receive the value following the sp=, a value of:
DMARC_RECORD_P_UNSPECIFIED if the sp= was absent or
DMARC_RECORD_P_NONE if sp=none or
DMARC_RECORD_P_QUARANTINE if sp=quarantine or
DMARC_RECORD_P_REJECT if sp=reject.
RETURN VALUES
  • DMARC_PARSE_OKAY -- On success.
  • DMARC_PARSE_ERROR_EMPTY -- The pctp pointer was NULL.
  • DMARC_PARSE_ERROR_NULL_CTX -- If you passed in a sp value that was NULL.
NOTES

Copyright (c) 2012, The Trusted Domain Project. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the license.