You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The {@code CertCreateCertificateContext} function creates a certificate context from an encoded certificate.
113
+
* The created context is not persisted to a certificate store.
114
+
* The function makes a copy of the encoded certificate within the created context.
115
+
* @param dwCertEncodingType
116
+
* [in] Specifies the type of encoding used. It is always acceptable to specify both the certificate and message
117
+
* encoding types by combining them with a bitwise-OR operation as shown in the following example:
118
+
* X509_ASN_ENCODING | PKCS_7_ASN_ENCODING. Currently, defined encoding types are:
119
+
* X509_ASN_ENCODING PKCS_7_ASN_ENCODING
120
+
* @param pbCertEncoded
121
+
* [in] A pointer to a buffer that contains the encoded certificate from which the context is to be created.
122
+
* @param cbCertEncoded
123
+
* [in] The size, in bytes, of the {@code pbCertEncoded} buffer.
124
+
* @return
125
+
* If the function succeeds, the function returns a pointer to a read-only {@link WinCrypt.CERT_CONTEXT}.
126
+
* When you have finished using the certificate context, free it by calling the {@link com.sun.jna.platform.win32.Crypt32#CertFreeCertificateContext(WinCrypt.CERT_CONTEXT)} function.
127
+
* If the function is unable to decode and create the certificate context, it returns NULL.
128
+
* For extended error information, call {@link Native#getLastError()}.
0 commit comments