Use constants rather than macros for the cipher bytes in the apps
[openssl.git] / apps / s_server.c
index c2ef521479be20242b1271482e3802ba8935fb06..13cc7a190adae7608d0ad01b55035f7dd459b1cc 100644 (file)
@@ -208,9 +208,9 @@ static int psk_find_session_cb(SSL *ssl, const unsigned char *identity,
     }
 
     if (key_len == EVP_MD_size(EVP_sha256()))
-        cipher = SSL_CIPHER_find(ssl, TLS13_AES_128_GCM_SHA256_BYTES);
+        cipher = SSL_CIPHER_find(ssl, tls13_aes128gcmsha256_id);
     else if(key_len == EVP_MD_size(EVP_sha384()))
-        cipher = SSL_CIPHER_find(ssl, TLS13_AES_256_GCM_SHA384_BYTES);
+        cipher = SSL_CIPHER_find(ssl, tls13_aes256gcmsha384_id);
 
     if (cipher == NULL) {
         /* Doesn't look like a suitable TLSv1.3 key. Ignore it */