Files
Viper_VRTE/openssl/__init__.vp
T
TermiNexus c0d56b127d chore(comments): includes 头注释英文化(R11 收尾)
把 includes 下 64 个 .vp 的文件头注释(含 traceback.vp 第 13-427 行的整块文件级说明)以及 2 处漏网的正文中文注释(ast/lexer.vp、json/__writer.vp)与 1 处中文 docstring(memhub.vp)逐行译为英文;同步把 fltk/gen_ffi.py 的生成模板与其自身注释英文化,使重新生成仍为英文。

只改注释/文档串文字:行数与代码逐字节不变(骨架比对 140 文件漂移 0),运行时中文字符串字面量 305 处保持原样。验证:三重重编 SUCCESS(170.21s)+ 全量 77/77 顺序回归通过 + VET 编译 SUCCESS / --search-paths 7 条 exit 0。
2026-10-06 09:42:25 +08:00

33 lines
1.3 KiB
Plaintext

# ============================================================
# openssl — Viper FFI binding package for OpenSSL 3.x
#
# Usage:
# import openssl
# v = openssl.OpenSSL_version(openssl.OpenSslVersion) # version text
# openssl.OPENSSL_init_ssl(0, None)
#
# Notes:
# * Everything is extern FFI (extern def, directly bound to libcrypto/libssl
# exported symbols), with no C++ bridge layer; objects are all opaque pointers (the *Ptr typedefs in openssl.types).
# * Headers are grouped by the official openssl headers: crypto/err/rand/sha/md5/hmac/objects/
# evp/bio/pem/x509/ssl.
# * Functions that return pointers return *Ptr; after acquiring an object, call the corresponding *_free/SSL_free etc. to release it as needed.
# * Password-callback parameters are always placeholder bytes; pass t.CPtr(0)/None when unused.
# * Linked libraries: libcrypto + libssl (on Windows with mingw, this means -lcrypto -lssl).
# ============================================================
import t
from openssl.types import *
from openssl.crypto import *
from openssl.err import *
from openssl.rand import *
from openssl.sha import *
from openssl.md5 import *
from openssl.hmac import *
from openssl.objects import *
from openssl.evp import *
from openssl.bio import *
from openssl.pem import *
from openssl.x509 import *
from openssl.ssl import *