Add Validation List Certificate (QSYADDVC, QsyAddVldlCertificate) API


  Required Parameter Group for QSYADDVC:


  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyAddVldlCertificate:
 #include <qsydigid.h>

 void QsyAddVldlCertificate
        (char    *Validation_list_path_name,
         int      Length_of_path,
         char    *Certificate
         int      Type,
         int      Length_of_certificate,
         void    *Error_code);

  Service Program: QSYDIGID

  Default Public Authority: *USE

  Threadsafe: Yes

The Add Validation List Certificate (OPM, QSYADDVC; ILE, QsyAddVldlCertificate) API adds a certificate to a validation list.

It is likely that many certificates will be added to a validation list. Each certificate that is added to a validation list must be unique in that validation list. The same certificate can be added to more than one validation list.


Authorities and Locks

Validation List Authority
*USE and *ADD
Validation List Library Authority
*EXECUTE

Required Parameter Group

Validation list path name
INPUT; CHAR(*)

The fully qualified path name of the validation list.
Example value:
/QSYS.LIB/SMITH.LIB/EXAMPLE.VLDL

Length of path
INPUT; BINARY(4)

The length of the validation list path.

Certificate
INPUT; CHAR(*)

The entire X.509 certificate encoded in Abstract Syntax Notation 1 Distinguished Encoding Rules (ASN.1 DER) format. This is not a text string.

Type
INPUT; BINARY(4)

The type of the certificate.

The possible types are:


Length of certificate
INPUT; BINARY(4)

The length of the certificate.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages




API introduced: V4R2

[ Back to top | Security APIs | APIs by category ]