Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
security_context.cc File Reference
#include "bin/security_context.h"
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/pkcs12.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include "platform/globals.h"
#include "bin/directory.h"
#include "bin/file.h"
#include "bin/secure_socket_filter.h"
#include "bin/secure_socket_utils.h"
#include "platform/syslog.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define RETURN_IF_ERROR(handle)
 

Functions

static void dart::bin::DeleteSecurityContext (void *isolate_data, void *context_pointer)
 
static Dart_Handle dart::bin::SetSecurityContext (Dart_NativeArguments args, SSLCertContext *context)
 
static void dart::bin::ReleaseCertificate (void *isolate_data, void *context_pointer)
 
static intptr_t dart::bin::EstimateX509Size (X509 *certificate)
 
static int dart::bin::SetTrustedCertificatesBytesPKCS12 (SSL_CTX *context, ScopedMemBIO *bio, const char *password)
 
static int dart::bin::SetTrustedCertificatesBytesPEM (SSL_CTX *context, BIO *bio)
 
static int dart::bin::SetClientAuthoritiesPKCS12 (SSL_CTX *context, ScopedMemBIO *bio, const char *password)
 
static int dart::bin::SetClientAuthoritiesPEM (SSL_CTX *context, BIO *bio)
 
static int dart::bin::SetClientAuthorities (SSL_CTX *context, ScopedMemBIO *bio, const char *password)
 
int dart::bin::PasswordCallback (char *buf, int size, int rwflag, void *userdata)
 
static EVP_PKEY * dart::bin::GetPrivateKeyPKCS12 (BIO *bio, const char *password)
 
static EVP_PKEY * dart::bin::GetPrivateKey (BIO *bio, const char *password)
 
int dart::bin::AlpnCallback (SSL *ssl, const uint8_t **out, uint8_t *outlen, const uint8_t *in, unsigned int inlen, void *arg)
 
static int dart::bin::UseChainBytesPKCS12 (SSL_CTX *context, ScopedMemBIO *bio, const char *password)
 
static int dart::bin::UseChainBytesPEM (SSL_CTX *context, BIO *bio)
 
static int dart::bin::UseChainBytes (SSL_CTX *context, ScopedMemBIO *bio, const char *password)
 
static X509 * dart::bin::GetX509Certificate (Dart_NativeArguments args)
 
static Dart_Handle dart::bin::ASN1TimeToMilliseconds (ASN1_TIME *aTime)
 
void FUNCTION_NAME() dart::bin::SecurityContext_UsePrivateKeyBytes (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_Allocate (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_SetTrustedCertificatesBytes (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_SetClientAuthoritiesBytes (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_UseCertificateChainBytes (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_TrustBuiltinRoots (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_SetAllowTlsRenegotiation (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_Der (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_Pem (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_Sha1 (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_Subject (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_Issuer (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_StartValidity (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::X509_EndValidity (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::SecurityContext_SetAlpnProtocols (Dart_NativeArguments args)
 

Macro Definition Documentation

◆ RETURN_IF_ERROR

#define RETURN_IF_ERROR (   handle)
Value:
{ \
Dart_Handle __handle = handle; \
if (Dart_IsError((__handle))) { \
return __handle; \
} \
}
DART_EXPORT bool Dart_IsError(Dart_Handle handle)

Definition at line 24 of file security_context.cc.