Documentation
¶
Index ¶
- Constants
- type Lib
- func (l *Lib) ConnBioPending(conn uintptr) int32
- func (l *Lib) ConnBioRead(conn uintptr, wireOut []byte) int32
- func (l *Lib) ConnBioWrite(conn uintptr, wireIn []byte) int32
- func (l *Lib) ConnCipherID(conn uintptr) uint16
- func (l *Lib) ConnDidResume(conn uintptr) bool
- func (l *Lib) ConnFree(conn uintptr)
- func (l *Lib) ConnGetALPN(conn uintptr) string
- func (l *Lib) ConnGetPeerCerts(conn uintptr) ([][]byte, error)
- func (l *Lib) ConnHandshake(conn uintptr) int32
- func (l *Lib) ConnLastError(conn uintptr) string
- func (l *Lib) ConnNew(ctx uintptr, sni string, alpnWire []byte, flags uint32) uintptr
- func (l *Lib) ConnRead(conn uintptr, plainOut []byte) int32
- func (l *Lib) ConnReadIO(conn uintptr, wireIn, plainOut []byte) (int32, int32, bool, bool)
- func (l *Lib) ConnSetECHConfig(conn uintptr, ech []byte) int32
- func (l *Lib) ConnSetSession(conn uintptr, data []byte) int32
- func (l *Lib) ConnSetTrustAnchors(conn uintptr, data []byte) int32
- func (l *Lib) ConnSetVerifyResult(conn uintptr, ok bool, alertCode uint8)
- func (l *Lib) ConnShutdown(conn uintptr) int32
- func (l *Lib) ConnTakeSession(conn uintptr) []byte
- func (l *Lib) ConnVersion(conn uintptr) uint16
- func (l *Lib) ConnWrite(conn uintptr, plainIn []byte) int32
- func (l *Lib) ConnWriteBio(conn uintptr, plainIn, wireOut []byte) (int32, []byte)
- func (l *Lib) CtxFree(ctx uintptr)
- func (l *Lib) CtxNew() uintptr
- func (l *Lib) SupportsConnReadIO() bool
- func (l *Lib) SupportsConnWriteBio() bool
Constants ¶
const ( OK int32 = 0 WantRead int32 = -1 WantWrite int32 = -2 WantVerify int32 = -3 ErrFatal int32 = -4 )
Return codes mirroring native/chrome_tls.h.
const ( FlagNoPostQuantum uint32 = 1 << 0 FlagNoALPS uint32 = 1 << 1 FlagNoECHGrease uint32 = 1 << 2 FlagNoPermuteExt uint32 = 1 << 3 FlagSkipVerify uint32 = 1 << 4 FlagTLS13Only uint32 = 1 << 5 FlagUseOldALPS uint32 = 1 << 6 )
Flags mirroring native/chrome_tls.h.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lib ¶
type Lib struct {
// contains filtered or unexported fields
}
Lib holds the dynamically loaded chrome_tls C ABI function pointers.
func Load ¶
Load opens libchrometls at the given path (or auto-discovers it when path is empty). Successful auto-discovery is cached for the life of the process.