> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingSecurityInformation

> XNetworkingSecurityInformation

# XNetworkingSecurityInformation

特定の URL エンドポイントに対して HTTP スタックを構成する際に使用されるセキュリティ情報を定義します。

## 構文

```cpp theme={null}
typedef struct XNetworkingSecurityInformation {
    uint32_t enabledHttpSecurityProtocolFlags;
    size_t thumbprintCount;
    XNetworkingThumbprint* thumbprints;
} XNetworkingSecurityInformation
```

### メンバー

*enabledHttpSecurityProtocolFlags*\
Type: uint32\_t

HTTP 要求が、この URL エンドポイントに対してどの Transport Layer Security (TLS) プロトコルを制限するかを示すフラグのビットマスク。`WinHttpSetOption` の呼び出しで `WINHTTP_OPTION_SECURE_PROTOCOLS` WinHTTP オプションに渡す必要があります。`WINHTTP_FLAG_SECURE_PROTOCOL_TLS1`、`WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1`、`WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2`、`WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_3` の任意の組み合わせにすることができます。

*thumbprintCount*\
Type: size\_t

`thumbprints` フィールドが指す配列内のサムプリントの数。

*thumbprints*\
Type: [XNetworkingThumbprint](/reference/networking/xnetworking/structs/xnetworkingthumbprint)\*

この URL エンドポイントに対してサーバーが提示する証明書チェーンに含まれることが想定されるサムプリントの配列。

## 解説

この構造体は、HTTP スタックを構成する際に使用されるセキュリティ情報を記述します。特定の URL エンドポイントに対して HTTP 要求がどの TLS プロトコルに制限されるかを決定します。サムプリントが常に存在するとは限りません。一般的な Fiddler の使用では、1 つのルート サムプリントを持ちます。

## 要件

**ヘッダー:** XNetworking.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体および XBOX Series 本体

## 概念ドキュメント

* [WinHTTP の概要](/build/console-features/networking/web-requests/intro-winhttp)

## 関連項目

[XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync)\
[XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingVerifyServerCertificate](/ja-jp/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworkingThumbprintType](/ja-jp/reference/networking/xnetworking/enums/xnetworkingthumbprinttype.md)
- [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md)
- [WinHTTP の概要](/ja-jp/build/console-features/networking/web-requests/intro-winhttp.md)
