22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong> A.163<br />

dlpdfsignaturesetx509cert (DLPDFSIGNATURE<br />

*signature, char *certificate, int certLen, void<br />

(*encryptSHA1Hash)(char *))<br />

Return Value: void<br />

Description<br />

Parameters<br />

Return Value<br />

This call associates an x.509 v3 certificate with<br />

a DLPDFSIGNATURE object created as a<br />

dlpdfsigacrox509 certificate digital signature.<br />

• DLPDFSIGNATURE *signature: signature<br />

with which x.509 v3 certificate will be<br />

associated<br />

• char *certificate: a binary buffer in<br />

the certificate parameter; <strong>DLI</strong> will read<br />

certLen bytes from this buffer <strong>and</strong> make a<br />

copy for the PDF file's digital signature<br />

• int certLen: number of bytes to be read<br />

from certificate buffer<br />

• void (*encryptSHA1Hash)(char *):<br />

callback function, called during the<br />

dlpdfdocwritepdf function call; see<br />

Technical Notes below.<br />

void<br />

Exceptions<br />

Header<br />

Related Methods<br />

Availability<br />

dli.h<br />

dlpdfdocwritepdf<br />

dlpdfsignaturesetpkcs7cert<br />

All <strong>DLI</strong>-supported platforms.<br />

Technical Notes<br />

1 It is an error to call this with a DLPDFSIGNATURE object created as a different

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!