xref: /aosp_15_r20/external/cronet/net/cert/x509_util_android.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/cert/cert_database.h"
6 #include "net/net_jni_headers/X509Util_jni.h"
7 
8 using jni_zero::JavaParamRef;
9 
10 namespace net {
11 
JNI_X509Util_NotifyTrustStoreChanged(JNIEnv * env)12 void JNI_X509Util_NotifyTrustStoreChanged(JNIEnv* env) {
13   CertDatabase::GetInstance()->NotifyObserversTrustStoreChanged();
14 }
15 
JNI_X509Util_NotifyClientCertStoreChanged(JNIEnv * env)16 void JNI_X509Util_NotifyClientCertStoreChanged(JNIEnv* env) {
17   CertDatabase::GetInstance()->NotifyObserversClientCertStoreChanged();
18 }
19 
20 }  // namespace net
21