init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
namespace Cef3
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cef3.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// Class representing SSL information.
|
||||
/// </summary>
|
||||
public sealed unsafe partial class CefSslInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the subject of the X.509 certificate. For HTTPS server
|
||||
/// certificates this represents the web server. The common name of the
|
||||
/// subject should match the host name of the web server.
|
||||
/// </summary>
|
||||
public CefSslCertPrincipal Subject
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_subject(_self);
|
||||
return CefSslCertPrincipal.FromNative(n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the issuer of the X.509 certificate.
|
||||
/// </summary>
|
||||
public CefSslCertPrincipal Issuer
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_issuer(_self);
|
||||
return CefSslCertPrincipal.FromNative(n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the DER encoded serial number for the X.509 certificate. The value
|
||||
/// possibly includes a leading 00 byte.
|
||||
/// </summary>
|
||||
public CefBinaryValue SerialNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_serial_number(_self);
|
||||
return CefBinaryValue.FromNative(n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the date before which the X.509 certificate is invalid.
|
||||
/// CefTime.GetTimeT() will return 0 if no date was specified.
|
||||
/// </summary>
|
||||
public DateTime ValidStart
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_valid_start(_self);
|
||||
return cef_time_t.ToDateTime(&n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the date after which the X.509 certificate is invalid.
|
||||
/// CefTime.GetTimeT() will return 0 if no date was specified.
|
||||
/// </summary>
|
||||
public DateTime ValidExpiry
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_valid_expiry(_self);
|
||||
return cef_time_t.ToDateTime(&n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the DER encoded data for the X.509 certificate.
|
||||
/// </summary>
|
||||
public CefBinaryValue DerEncoded
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_derencoded(_self);
|
||||
return CefBinaryValue.FromNative(n_result);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the PEM encoded data for the X.509 certificate.
|
||||
/// </summary>
|
||||
public CefBinaryValue PemEncoded
|
||||
{
|
||||
get
|
||||
{
|
||||
var n_result = cef_sslinfo_t.get_pemencoded(_self);
|
||||
return CefBinaryValue.FromNative(n_result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user