summaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/tls_openssl.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-29svm: rename fifo tx notifications to reflect useFlorin Coras1-1/+1
2019-05-16init / exit function orderingDave Barach1-7/+6
2019-05-08session: send tx events when data is dequeuedFlorin Coras1-0/+3
2019-05-03plugins: clean up plugin descriptionsDave Wallace1-1/+1
2019-04-18tls: allow engines to customize closeFlorin Coras1-0/+24
2019-04-16svm_fifo rework to avoid contention on cursizeSirshak Das1-7/+7
2019-02-18tls: fix openssl/mbedtls use of app_wrk indexFlorin Coras1-2/+7
2019-02-04session: cleanup part 1Florin Coras1-19/+17
2019-01-28update openssl TLS async to align with openssl master branchPing Yu1-4/+2
2019-01-07Change vpp code to align with openssl interface changePing Yu1-11/+15
2018-10-23c11 safe string handling supportDave Barach1-2/+2
2018-10-02tls: fix disconnects for sessions with pending dataFlorin Coras1-12/+12
2018-09-15tls: fix openssl engine write complete conditionFlorin Coras1-1/+1
2018-09-04add option to allow user to set ciphersPing Yu1-6/+32
2018-08-17optimize init_server to reduce session overheadPing Yu1-32/+98
2018-07-23tls: avoid possible async handler duplicationPing Yu1-1/+1
2018-07-19Add a new communication channel between VPP and openssl enginePing Yu1-4/+23
2018-07-16Enable openssl TLS async support in client for HW acclerationPing Yu1-0/+15
2018-06-15TLS async supportPing Yu1-22/+144
2018-05-31Fix TLS issue to load certification and keyPing Yu1-0/+2
2018-03-15tls: add openssl engineFlorin Coras1-0/+675
n> * * Version: The version field is used to ensure backward compatibility * going forward with future NSH updates. * * O bit: Indicates that this packet is an operations and management * (OAM) packet. SFF and SFs nodes MUST examine the payload and take * appropriate action (e.g. return status information). * * OAM message specifics and handling details are outside the scope of * this document. * * C bit: Indicates that a critical metadata TLV is present (see section * 7). This bit acts as an indication for hardware implementers to * decide how to handle the presence of a critical TLV without * necessarily needing to parse all TLVs present. The C bit MUST be set * to 1 if one or more critical TLVs are present. * * All other flag fields are reserved. * * Length: total length, in 4 byte words, of the NSH header, including * optional variable TLVs. Length must be equal or greater than 6. * * MD Type: indicates the format of NSH beyond the base header and the * type of metadata being carried. This typing is used to describe the * use for the metadata. A new registry will be requested from IANA for * the MD Type. NSH defines one type, type = 0x1 which indicates that * the format of the header is as per this draft. * * The format of the base header is invariant, and not described by MD * Type. * * Next Protocol: indicates the protocol type of the original packet. A * new IANA registry will be created for protocol type. * * This draft defines the following Next Protocol values: * * 0x1 : IPv4 * 0x2 : IPv6 * 0x3 : Ethernet */ typedef CLIB_PACKED(struct { u8 ver_o_c; //TTL: high 4 bit u8 length; //TTL: low 2 bit u8 md_type; u8 next_protocol; u32 nsp_nsi; // nsp 24 bits, nsi 8 bits }) nsh_base_header_t; typedef CLIB_PACKED(struct { /* Context headers, always present */ u32 c1; u32 c2; u32 c3; u32 c4; }) nsh_md1_data_t; typedef CLIB_PACKED(struct { u16 class; u8 type; u8 length; }) nsh_tlv_header_t; typedef nsh_tlv_header_t nsh_md2_data_t; typedef CLIB_PACKED(struct { nsh_base_header_t nsh_base; union { nsh_md1_data_t md1_data; nsh_md2_data_t md2_data; } md; }) nsh_header_t; #define NSH_VERSION (0<<6) #define NSH_O_BIT (1<<5) #define NSH_C_BIT (1<<4) #define NSH_TTL_H4_MASK 0xF #define NSH_TTL_L2_MASK 0xC0 #define NSH_LEN_MASK 0x3F /* Network byte order shift / mask */ #define NSH_NSI_MASK 0xFF #define NSH_NSP_MASK (0x00FFFFFF) #define NSH_NSP_SHIFT 8 #endif /* included_nsh_packet_h */