ssl-implementation.txt

来自「OTP是开放电信平台的简称」· 文本 代码 · 共 53 行

TXT
53
字号
Important modules:	  module		behaviour	children	  ------		---------	  ssl_app		application	ssl_sup	  ssl_sup		supervisor	ssl_server, ssl_broker_sup	  ssl_server		gen_server	-	  ssl_broker_sup	supervisor	ssl_broker	  ssl_broker		gen_server	-The ssl_server controls a port program that implements the SSL functionality.That port program uses the OpenSSL package.Each socket has a corresponding broker (listen, accept or connect). A brokeris created and supervised by the ssl_broker_sup. All communication is between a user and a broker. The broker communicateswith the ssl_server, that sends its commands to the port program and handlesthe port program responses, that are distributed to users through thebrokers. There is a distinction between commands and data flow between the ssl_serverand the port program. Each established connection between the user and theoutside world consists of a local erlang socket (owned by the broker) thatis read from and written to by the broker. At the other end of the localconnection is a local socket in the port program. The "real" socket that connects to the outside world is in the port program(including listen sockets). The main purpose of the port program is to shuffle data between local sockets and outside world sockets, and detect andpropagate read and write errors (including detection of closed sockets) tothe ssl_server. There is documentation in the ssl_broker.erl module. There is also documentation in the esock.c and esock_openssl.c files.  The ssl_pem.erl, ssl_pkix.erl and ssl_base64.erl modules are supportmodules for reading SSL certificates. Modules for parsing certificatesare generated from ASN.1 modules in the `pkix' directory. The `examples' directory contains functions for generating certificates. Those certificates are used in the test suites.   

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?