ssl

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ssl provides Go bindings for android.net.ssl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type SSLEngines

type SSLEngines struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SSLEngines wraps android.net.ssl.SSLEngines.

func (*SSLEngines) ExportKeyingMaterial

func (m *SSLEngines) ExportKeyingMaterial(
	arg0 *jni.Object,
	arg1 string,
	arg2 *jni.Object,
	arg3 int32,
) (*jni.Object, error)

ExportKeyingMaterial calls android.net.ssl.SSLEngines.exportKeyingMaterial.

func (*SSLEngines) IsSupportedEngine

func (m *SSLEngines) IsSupportedEngine(arg0 *jni.Object) (bool, error)

IsSupportedEngine calls android.net.ssl.SSLEngines.isSupportedEngine.

func (*SSLEngines) SetUseSessionTickets

func (m *SSLEngines) SetUseSessionTickets(arg0 *jni.Object, arg1 bool) error

SetUseSessionTickets calls android.net.ssl.SSLEngines.setUseSessionTickets.

func (*SSLEngines) ToString added in v0.0.8

func (m *SSLEngines) ToString() (string, error)

ToString calls android.net.ssl.SSLEngines.toString.

type SSLSockets

type SSLSockets struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SSLSockets wraps android.net.ssl.SSLSockets.

func (*SSLSockets) ExportKeyingMaterial

func (m *SSLSockets) ExportKeyingMaterial(
	arg0 *jni.Object,
	arg1 string,
	arg2 *jni.Object,
	arg3 int32,
) (*jni.Object, error)

ExportKeyingMaterial calls android.net.ssl.SSLSockets.exportKeyingMaterial.

func (*SSLSockets) IsSupportedSocket

func (m *SSLSockets) IsSupportedSocket(arg0 *jni.Object) (bool, error)

IsSupportedSocket calls android.net.ssl.SSLSockets.isSupportedSocket.

func (*SSLSockets) SetUseSessionTickets

func (m *SSLSockets) SetUseSessionTickets(arg0 *jni.Object, arg1 bool) error

SetUseSessionTickets calls android.net.ssl.SSLSockets.setUseSessionTickets.

func (*SSLSockets) ToString added in v0.0.8

func (m *SSLSockets) ToString() (string, error)

ToString calls android.net.ssl.SSLSockets.toString.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL