X509CertVerify (FUN) ¶ FUNCTION X509CertVerify : RTS_IEC_RESULT Verify the given certificate. This verify checks only if the certificate itself is trusted using the certificates in the store. The verify checks if the certificate was added to the untrusted certs list. No subjects, key usages or other fields are verified. This has to be done by the application using this function. If the verify should use CRL to verify the certificates set the setting VerifyUseCRL to 1. This is disabled by default. InOut: Scope Name Type Comment Return X509CertVerify RTS_IEC_RESULT Result of the verification. Refer to ERR_CERT_ … error codes Input hCertStore RTS_IEC_HANDLE Handle of to certificate store. hCert RTS_IEC_HANDLE Certificate to verify.
X509CertVerify2 (FUN) ¶ FUNCTION X509CertVerify2 : RTS_IEC_RESULT Verify the given certificate. THIS verify checks only IF the certificate itself is trusted using the certificates in the store. The verify checks if the certificate was added to the untrusted certs list. No subjects, key usages or other fields are verified. This has to be done by the application using this function. This is disabled by default. InOut: Scope Name Type Comment Return X509CertVerify2 RTS_IEC_RESULT Result of certificate validation. One of the ERR_CERT_ … error codes. Input hCertStore RTS_IEC_HANDLE Handle of to certificate store. hCert RTS_IEC_HANDLE Certificate to verify. validationTimestamp SYSTIME The time-stamp used to verify the certificate. Same timebase as UtcHighresGet. If 0 the current time will be used. verificationFlags RtsX509VerifyFlags Flags to configure the verification process. See RTSX509VERIFYFLAGS for details.
UtilityFunctions ¶ RtsOIDClear (Function) RtsOIDCreate (Function) RtsOIDGetID (Function) RtsOIDGetName (Function) X509CertInfoExit (Function) X509CertInfoInit (Function)
RtsOIDClear (FUN) ¶ FUNCTION RtsOIDClear : RTS_IEC_RESULT Clear an OID InOut: Scope Name Type Comment Return RtsOIDClear RTS_IEC_RESULT Result of the operation Input oid POINTER TO RtsOID
RtsOIDCreate (FUN) ¶ FUNCTION RtsOIDCreate : RTS_IEC_RESULT Create an RtsOID based on a given ID. InOut: Scope Name Type Comment Return RtsOIDCreate RTS_IEC_RESULT Result of the operation. Input id POINTER TO STRING OID as string in dottet format. E.g. (1.2.3.4.5.6.7.8.9.0) oid POINTER TO RtsOID Pointer to an OID to fill up.
RtsOIDGetID (FUN) ¶ FUNCTION RtsOIDGetID : RTS_IEC_RESULT Get the ID of an OID in dottet notation. InOut: Scope Name Type Comment Return RtsOIDGetID RTS_IEC_RESULT Result of the operation Input oid POINTER TO RtsOID OID to print. pBuffer POINTER TO RtsByteString Buffer where to store the ID.
RtsOIDGetName (FUN) ¶ FUNCTION RtsOIDGetName : RTS_IEC_RESULT Get the given name of an OID. If the OID is unknown to the system the dottet notation will be returned. InOut: Scope Name Type Comment Return RtsOIDGetName RTS_IEC_RESULT Result of the operation. Input oid POINTER TO RtsOID pBuffer POINTER TO RtsByteString
X509CertInfoExit (FUN) ¶ FUNCTION X509CertInfoExit : RTS_IEC_RESULT Cleanup an RtsX509CertInfo structure. All allocated memory used by this strucutre will be release. InOut: Scope Name Type Comment Return X509CertInfoExit RTS_IEC_RESULT Result of the operation Input pCertInfo POINTER TO RtsX509CertInfo Pointer to the object to clean up.
X509CertInfoInit (FUN) ¶ FUNCTION X509CertInfoInit : RTS_IEC_RESULT Initialize the RtsX509CertInfo structure. InOut: Scope Name Type Comment Return X509CertInfoInit RTS_IEC_RESULT Result of the operation Input pCertInfo POINTER TO RtsX509CertInfo Pointer to the structure. structSize UDINT Size of the structure.
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 02.03.2023, 11:03:44 companyName string 3S-Smart Software Solutions GmbH libraryFile CmpX509Cert Implementation.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile CmpX509Cert Implementation.clean.json version version 2.0.0.0 ProjectInformation IsEndUserLibrary bool False Released True LastModificationDateTime date 02.03.2023, 11:03:42 LibraryCategories library-category-list System|SysLibs Author string CODESYS Development GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace Description See: Description DocFormat reStructuredText Placeholder CmpX509Cert Implementation Project CmpX509Cert Implementation Title CmpX509Cert Implementation Version version 3.5.19.0