Use of Transport Layer Security (TLS) and Datagram Transport Layer
Security (DTLS)\", `https://tools.ietf.org/html/rfc7525'"
(let ((compression (plist-get status :compression)))
- (and (string-match "^\\bDEFLATE\\b" compression)
+ (and compression
+ (string-match "^\\bDEFLATE\\b" compression)
(format-message
"compression method (%s) may lead to leakage of sensitive information"
compression))))
/* Compression name. */
#ifdef HAVE_GNUTLS_COMPRESSION_GET
- Lisp_Object compression = build_string (gnutls_compression_get_name
- (gnutls_compression_get (state)));
-#else
- Lisp_Object compression = build_string ("NULL");
+ result = nconc2
+ (result, list2 (intern (":compression"),
+ build_string (gnutls_compression_get_name
+ (gnutls_compression_get (state)))));
#endif
- result = nconc2 (result, list2 (intern (":compression"), compression));
/* Encrypt-then-MAC. */
- Lisp_Object etm_status = Qnil;
#ifdef HAVE_GNUTLS_ETM_STATUS
- if (gnutls_session_etm_status (state))
- etm_status = Qt;
+ result = nconc2
+ (result, list2 (intern (":encrypt-then-mac"),
+ gnutls_session_etm_status (state) ? Qt : Qnil));
#endif
- result = nconc2 (result, list2 (intern (":encrypt-then-mac"), etm_status));
/* Renegotiation Indication */
result = nconc2