From 4cedf19627db837813e2230f655d8e13fbdd4334 Mon Sep 17 00:00:00 2001 From: JawaharGaneshS <55711542+JawaharGaneshS@users.noreply.github.com> Date: Fri, 29 Nov 2024 08:32:38 +0530 Subject: [PATCH 1/2] Update ihttprequest-getclientcertificate-method.md The link for HTTP_SSL_CLIENT_CERT_INFO structure was broken. So fixed the link --- .../ihttprequest-getclientcertificate-method.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md b/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md index 5b7d5406b..5e242d50d 100644 --- a/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md +++ b/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md @@ -18,7 +18,7 @@ HRESULT GetClientCertificate( ### Parameters `ppClientCertInfo` - [OUT] A pointer to an [HTTP_SSL_CLIENT_CERT_INFO](https://go.microsoft.com/fwlink/?LinkId=63150) structure. + [OUT] A pointer to an [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/en-us/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure. `pfClientCertNegotiated` [OUT] `true` if the client certificate has been negotiated already; otherwise, `false`. For more information, see the Remarks section. @@ -42,7 +42,7 @@ HRESULT GetClientCertificate( For URLs that do not require a client certificate, you can call the [NegotiateClientCertificate](../../web-development-reference/native-code-api-reference/ihttprequest-negotiateclientcertificate-method.md) method before you call `GetClientCertificate` to attempt a manual loading of the client certificate. ## Example - The following example demonstrates how to get a pointer to the [HTTP_SSL_CLIENT_CERT_INFO](https://go.microsoft.com/fwlink/?LinkId=63150) structure by implementing the [CHttpModule::OnBeginRequest](../../web-development-reference/native-code-api-reference/chttpmodule-onbeginrequest-method.md) method. + The following example demonstrates how to get a pointer to the [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/en-us/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure by implementing the [CHttpModule::OnBeginRequest](../../web-development-reference/native-code-api-reference/chttpmodule-onbeginrequest-method.md) method. [!code-cpp[IHttpRequestGetClientCertificate#2](../../../samples/snippets/cpp/VS_Snippets_IIS/IIS7/IHttpRequestGetClientCertificate/cpp/mymodule.cpp#2)] From 74b85a883736ce58f625fb2d8bb06ae75ade2d06 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 29 Nov 2024 08:30:41 -1000 Subject: [PATCH 2/2] Update ihttprequest-getclientcertificate-method.md --- .../ihttprequest-getclientcertificate-method.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md b/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md index 5e242d50d..6e0edb4d0 100644 --- a/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md +++ b/iis/web-development-reference/native-code-api-reference/ihttprequest-getclientcertificate-method.md @@ -18,7 +18,7 @@ HRESULT GetClientCertificate( ### Parameters `ppClientCertInfo` - [OUT] A pointer to an [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/en-us/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure. + [OUT] A pointer to an [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure. `pfClientCertNegotiated` [OUT] `true` if the client certificate has been negotiated already; otherwise, `false`. For more information, see the Remarks section. @@ -42,7 +42,7 @@ HRESULT GetClientCertificate( For URLs that do not require a client certificate, you can call the [NegotiateClientCertificate](../../web-development-reference/native-code-api-reference/ihttprequest-negotiateclientcertificate-method.md) method before you call `GetClientCertificate` to attempt a manual loading of the client certificate. ## Example - The following example demonstrates how to get a pointer to the [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/en-us/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure by implementing the [CHttpModule::OnBeginRequest](../../web-development-reference/native-code-api-reference/chttpmodule-onbeginrequest-method.md) method. + The following example demonstrates how to get a pointer to the [HTTP_SSL_CLIENT_CERT_INFO](https://learn.microsoft.com/windows/win32/api/http/ns-http-http_ssl_client_cert_info) structure by implementing the [CHttpModule::OnBeginRequest](../../web-development-reference/native-code-api-reference/chttpmodule-onbeginrequest-method.md) method. [!code-cpp[IHttpRequestGetClientCertificate#2](../../../samples/snippets/cpp/VS_Snippets_IIS/IIS7/IHttpRequestGetClientCertificate/cpp/mymodule.cpp#2)]