Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1753166896, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "6ab6deccd95c97a6235f345b371664afb65f77c7", "alias": []},"tree": [ { "name": "README","mode": "33188", "size":3358}, { "name": "extensions.c","mode": "33188", "size":59492}, { "name": "extensions_clnt.c","mode": "33188", "size":65567}, { "name": "extensions_cust.c","mode": "33188", "size":18207}, { "name": "extensions_srvr.c","mode": "33188", "size":64376}, { "name": "statem.c","mode": "33188", "size":30291}, { "name": "statem.h","mode": "33188", "size":5115}, { "name": "statem_clnt.c","mode": "33188", "size":123128}, { "name": "statem_dtls.c","mode": "33188", "size":40574}, { "name": "statem_lib.c","mode": "33188", "size":75140}, { "name": "statem_locl.h","mode": "33188", "size":22133}, { "name": "statem_srvr.c","mode": "33188", "size":136056}],"s":{"c":1753166896,"u": 7675}} ,{"schema":"libjg2-1", "cid":"af6dffc1e98cc188990935e63f526773", "oid":{ "oid": "6ab6deccd95c97a6235f345b371664afb65f77c7", "alias": []},"blobname": "ssl/statem/README", "blob": "State Machine Design\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nThis file provides some guidance on the thinking behind the design of the\nstate machine code to aid future maintenance.\n\nThe state machine code replaces an older state machine present in OpenSSL\nversions 1.0.2 and below. The new state machine has the following objectives:\n - Remove duplication of state code between client and server\n - Remove duplication of state code between TLS and DTLS\n - Simplify transitions and bring the logic together in a single location\n so that it is easier to validate\n - Remove duplication of code between each of the message handling functions\n - Receive a message first and then work out whether that is a valid\n transition - not the other way around (the other way causes lots of issues\n where we are expecting one type of message next but actually get something\n else)\n - Separate message flow state from handshake state (in order to better\n understand each)\n - message flow state \u003d when to flush buffers; handling restarts in the\n event of NBIO events; handling the common flow of steps for reading a\n message and the common flow of steps for writing a message etc\n - handshake state \u003d what handshake message are we working on now\n - Control complexity: only the state machine can change state: keep all\n the state changes local to the state machine component\n\nThe message flow state machine is divided into a reading sub-state machine and a\nwriting sub-state machine. See the source comments in statem.c for a more\ndetailed description of the various states and transitions possible.\n\nConceptually the state machine component is designed as follows:\n\n libssl\n |\n---------------------------|-----statem.h--------------------------------------\n |\n _______V____________________\n | |\n | statem.c |\n | |\n | Core state machine code |\n |____________________________|\n statem_locl.h ^ ^\n _________| |_______\n | |\n _____________|____________ _____________|____________\n | | | |\n | statem_clnt.c | | statem_srvr.c |\n | | | |\n | TLS/DTLS client specific | | TLS/DTLS server specific |\n | state machine code | | state machine code |\n |__________________________| |__________________________|\n | |_______________|__ |\n | ________________| | |\n | | | |\n ____________V_______V________ ________V______V_______________\n | | | |\n | statem_both.c | | statem_dtls.c |\n | | | |\n | Non core functions common | | Non core functions common to |\n | to both servers and clients | | both DTLS servers and clients |\n |_____________________________| |_______________________________|\n\n","s":{"c":1753166896,"u": 169}} ],"g": 10699,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}