dkim_getsignalg()

SYNOPSIS
#include <dkim.h>
DKIM_STAT dkim_getsignalg(
	DKIM *dkim,
        dkim_alg_t *alg
);
Retrieve the signature algorithm used to sign a message after verification.
DESCRIPTION
Called When dkim_getsignalg() is called after dkim_eom() to get the signing algorithm that was used to sign a message. The value returned is only meaningful if dkim_eom() returned either DKIM_STAT_OK or DKIM_STAT_BADSIG; the returned value is otherwise undefined.
ARGUMENTS
ArgumentDescription
dkim Message-specific handle, returned by dkim_verify.
alg A pointer to a dkim_alg_t which will receive the algorithm that was used to sign the message.
RETURN VALUES
ValueDescription
DKIM_STAT_INVALID The function was called before dkim_eom, or with a handle that was not opened for verification.
DKIM_STAT_OK Successful completion.
NOTES
  • This function is a local addition to the formal API specification and is experimental only. It may not appear in other implementations.

Copyright (c) 2006 Sendmail, Inc. and its suppliers. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the LICENSE.