tlsutil

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tlsutil provides centralized TLS configuration for all HTTP clients, servers, and Redis connections in agentflow. 安全加固:TLS 1.2+,仅 AEAD 密码套件。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTLSConfig

func DefaultTLSConfig() *tls.Config

DefaultTLSConfig returns a hardened TLS configuration. MinVersion TLS 1.2, AEAD-only cipher suites.

func SecureHTTPClient

func SecureHTTPClient(timeout time.Duration) *http.Client

SecureHTTPClient returns an http.Client with TLS hardening. Drop-in replacement for &http.Client{Timeout: timeout}.

func SecureTransport

func SecureTransport() *http.Transport

SecureTransport returns an http.Transport with TLS hardening.

Types

This section is empty.

Jump to

Keyboard shortcuts

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