View Javadoc
1   /*
2    * Copyright 2021 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   https://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.codec.quic;
17  
18  final class BoringSSLNativeStaticallyReferencedJniMethods {
19      static native int ssl_verify_none();
20      static native int ssl_verify_peer();
21      static native int ssl_verify_fail_if_no_peer_cert();
22  
23      static native int x509_v_ok();
24      static native int x509_v_err_cert_has_expired();
25      static native int x509_v_err_cert_not_yet_valid();
26      static native int x509_v_err_cert_revoked();
27      static native int x509_v_err_unspecified();
28      static native int ssl_sign_rsa_pkcs_sha1();
29      static native int ssl_sign_rsa_pkcs_sha256();
30      static native int ssl_sign_rsa_pkcs_sha384();
31      static native int ssl_sign_rsa_pkcs_sha512();
32      static native int ssl_sign_ecdsa_pkcs_sha1();
33      static native int ssl_sign_ecdsa_secp256r1_sha256();
34      static native int ssl_sign_ecdsa_secp384r1_sha384();
35      static native int ssl_sign_ecdsa_secp521r1_sha512();
36      static native int ssl_sign_rsa_pss_rsae_sha256();
37      static native int ssl_sign_rsa_pss_rsae_sha384();
38      static native int ssl_sign_rsa_pss_rsae_sha512();
39      static native int ssl_sign_ed25519();
40      static native int ssl_sign_rsa_pkcs1_md5_sha1();
41  
42      private BoringSSLNativeStaticallyReferencedJniMethods() { }
43  }