• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef AWS_JNI_CRT_TLS_CONTEXT_PKCS11_OPTIONS_H
2 #define AWS_JNI_CRT_TLS_CONTEXT_PKCS11_OPTIONS_H
3 /**
4  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5  * SPDX-License-Identifier: Apache-2.0.
6  */
7 
8 #include <jni.h>
9 
10 struct aws_tls_ctx_pkcs11_options;
11 
12 /* Create a aws_tls_ctx_pkcs11_options from a TlsContextPkcs11Options java object.
13  * All values are copied out of the Java object and stored in this allocation,
14  * there's no need to keep the java object around.
15  * This MUST be destroyed via aws_pkcs11_tls_options_from_java_destroy().
16  * Returns NULL and throws a java exception if something goes wrong. */
17 struct aws_tls_ctx_pkcs11_options *aws_tls_ctx_pkcs11_options_from_java_new(JNIEnv *env, jobject options_jni);
18 
19 void aws_tls_ctx_pkcs11_options_from_java_destroy(struct aws_tls_ctx_pkcs11_options *options);
20 
21 #endif /* AWS_JNI_CRT_TLS_CONTEXT_PKCS11_OPTIONS_H */
22