summaryrefslogtreecommitdiffstats
path: root/net/android/x509_util.cc
blob: 9f3491fcc2c5490735911ad050aa35850b65f7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/android/x509_util.h"

#include "base/android/jni_android.h"
#include "jni/X509Util_jni.h"
#include "net/cert/cert_database.h"

namespace net {

void NotifyKeyChainChanged(JNIEnv* env, jclass clazz) {
  CertDatabase::GetInstance()->OnAndroidKeyChainChanged();
}

jobject GetApplicationContext(JNIEnv* env, jclass clazz) {
  return base::android::GetApplicationContext();
}

bool RegisterX509Util(JNIEnv* env) {
  return RegisterNativesImpl(env);
}

}  // net namespace