mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-13 10:06:28 +01:00
7c5cb76692
- cefclient: Improve error message text and use a data: URI instead of LoadString for loading error messages (issue #579). - Add functions in cef_url.h for base64 and URI encoding/decoding (issue #579). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@2028 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
147 lines
4.0 KiB
C++
147 lines
4.0 KiB
C++
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
//
|
|
// ---------------------------------------------------------------------------
|
|
//
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
// hand only do so within the body of existing method and function
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
// for more information.
|
|
//
|
|
|
|
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
|
#include "libcef_dll/cpptoc/sslcert_principal_cpptoc.h"
|
|
#include "libcef_dll/cpptoc/sslinfo_cpptoc.h"
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
cef_sslcert_principal_t* CEF_CALLBACK sslinfo_get_subject(
|
|
struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefRefPtr<CefSSLCertPrincipal> _retval = CefSSLInfoCppToC::Get(
|
|
self)->GetSubject();
|
|
|
|
// Return type: refptr_same
|
|
return CefSSLCertPrincipalCppToC::Wrap(_retval);
|
|
}
|
|
|
|
cef_sslcert_principal_t* CEF_CALLBACK sslinfo_get_issuer(
|
|
struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefRefPtr<CefSSLCertPrincipal> _retval = CefSSLInfoCppToC::Get(
|
|
self)->GetIssuer();
|
|
|
|
// Return type: refptr_same
|
|
return CefSSLCertPrincipalCppToC::Wrap(_retval);
|
|
}
|
|
|
|
struct _cef_binary_value_t* CEF_CALLBACK sslinfo_get_serial_number(
|
|
struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefRefPtr<CefBinaryValue> _retval = CefSSLInfoCppToC::Get(
|
|
self)->GetSerialNumber();
|
|
|
|
// Return type: refptr_same
|
|
return CefBinaryValueCppToC::Wrap(_retval);
|
|
}
|
|
|
|
cef_time_t CEF_CALLBACK sslinfo_get_valid_start(struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return CefTime();
|
|
|
|
// Execute
|
|
cef_time_t _retval = CefSSLInfoCppToC::Get(self)->GetValidStart();
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
cef_time_t CEF_CALLBACK sslinfo_get_valid_expiry(struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return CefTime();
|
|
|
|
// Execute
|
|
cef_time_t _retval = CefSSLInfoCppToC::Get(self)->GetValidExpiry();
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
struct _cef_binary_value_t* CEF_CALLBACK sslinfo_get_derencoded(
|
|
struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefRefPtr<CefBinaryValue> _retval = CefSSLInfoCppToC::Get(
|
|
self)->GetDEREncoded();
|
|
|
|
// Return type: refptr_same
|
|
return CefBinaryValueCppToC::Wrap(_retval);
|
|
}
|
|
|
|
struct _cef_binary_value_t* CEF_CALLBACK sslinfo_get_pemencoded(
|
|
struct _cef_sslinfo_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefRefPtr<CefBinaryValue> _retval = CefSSLInfoCppToC::Get(
|
|
self)->GetPEMEncoded();
|
|
|
|
// Return type: refptr_same
|
|
return CefBinaryValueCppToC::Wrap(_retval);
|
|
}
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
CefSSLInfoCppToC::CefSSLInfoCppToC(CefSSLInfo* cls)
|
|
: CefCppToC<CefSSLInfoCppToC, CefSSLInfo, cef_sslinfo_t>(cls) {
|
|
struct_.struct_.get_subject = sslinfo_get_subject;
|
|
struct_.struct_.get_issuer = sslinfo_get_issuer;
|
|
struct_.struct_.get_serial_number = sslinfo_get_serial_number;
|
|
struct_.struct_.get_valid_start = sslinfo_get_valid_start;
|
|
struct_.struct_.get_valid_expiry = sslinfo_get_valid_expiry;
|
|
struct_.struct_.get_derencoded = sslinfo_get_derencoded;
|
|
struct_.struct_.get_pemencoded = sslinfo_get_pemencoded;
|
|
}
|
|
|
|
#ifndef NDEBUG
|
|
template<> base::AtomicRefCount CefCppToC<CefSSLInfoCppToC, CefSSLInfo,
|
|
cef_sslinfo_t>::DebugObjCt = 0;
|
|
#endif
|
|
|