dk_gethdrs()

SYNOPSIS
#include <dk.h>
DK_STAT dk_getsig(
	DK *dk,
        unsigned char *buf,
        size_t len
);
Retrieve the list of headers that were included in the computation of this signature. They will be written to buf, separated by colons. This should be included in the header added to the message being signed.
DESCRIPTION
Called When dk_gethdrs() is called after dk_eom() when dk is a signing handle, i.e. one returned by an earlier call to dk_sign().
ARGUMENTS
ArgumentDescription
dk Message-specific handle, returned by dk_sign().
buf A buffer into which the list of headers should be stored.
len Number of bytes available at buf.
NOTES
  • It is an error to call this function with a handle that was created using dk_verify().
  • This function is a local addition to the formal API specification and is experimental only. It may not appear in other implementations.

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