+40
−15
+7
−3
+18
−4
+74
−27
Loading
Prepare for cipher suite selection introduced in the next patch. Cipher suites are going to be selected based on size of provided PSK in interchange format. Choosing hash function for retained PSK will be introduced in a future patch along with PSK interchange format. Use TLS_AES_128_GCM_SHA256 until information about cipher suite can be derived from length of PSK configured. Cipher TLS_AES_256_GCM_SHA384 requires us to use newer version of OpenSSL callbacks: instead of setting them with SSL_set_psk_server_callback() we'll need to use SSL_set_psk_find_session_callback() for server callbacks. As a part of this patch introduce required server side changes. Change-Id: I3683f6366aab3fea71ab218dbf4e2589292120e2 Signed-off-by:Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16125 Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>