[PATCH 6/8] winhttp: Added schannel-based netconn_get_cipher_strength implementation

Hans Leidekker hans at codeweavers.com
Tue Jan 22 10:22:28 CST 2013


On Tue, 2013-01-22 at 16:49 +0100, Jacek Caban wrote:
> @@ -1460,6 +1460,13 @@ int netconn_get_cipher_strength( netconn_t *conn )
>      pSSL_CIPHER_get_bits( cipher, &bits );
>      return bits;
>  #else
> -    return 0;
> +    SecPkgContext_ConnectionInfo conn_info;
> +    SECURITY_STATUS res;
> +
> +    if (!conn->secure) return 0;
> +    res = QueryContextAttributesW(&conn->ssl_ctx, SECPKG_ATTR_REMOTE_CERT_CONTEXT, (void*)&conn_info);

That should be SECPKG_ATTR_CONNECTION_INFO.





More information about the wine-devel mailing list