RFC2744 日本語訳
2744 Generic Security Service API Version 2 : C-bindings. J. Wray. January 2000. (Format: TXT=218572 bytes) (Obsoletes RFC1509) (Status: PROPOSED STANDARD)
プログラムでの自動翻訳です。
RFC一覧
英語原文
Network Working Group J. Wray Request for Comments: 2744 Iris Associates Obsoletes: 1509 January 2000 Category: Standards Track
コメントを求めるワーキンググループJ.レイ要求をネットワークでつないでください: 2744の虹彩関連が以下を時代遅れにします。 1509 2000年1月のカテゴリ: 標準化過程
Generic Security Service API Version 2 : C-bindings
ジェネリックセキュリティー・サービスAPIバージョン2: C-結合
Status of this Memo
このMemoの状態
This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.
このドキュメントは、インターネットコミュニティにインターネット標準化過程プロトコルを指定して、改良のために議論と提案を要求します。 このプロトコルの標準化状態と状態への「インターネット公式プロトコル標準」(STD1)の現行版を参照してください。 このメモの分配は無制限です。
Copyright Notice
版権情報
Copyright (C) The Internet Society (2000). All Rights Reserved.
Copyright(C)インターネット協会(2000)。 All rights reserved。
Abstract
要約
This document specifies C language bindings for Version 2, Update 1 of the Generic Security Service Application Program Interface (GSS- API), which is described at a language-independent conceptual level in RFC-2743 [GSSAPI]. It obsoletes RFC-1509, making specific incremental changes in response to implementation experience and liaison requests. It is intended, therefore, that this memo or a successor version thereof will become the basis for subsequent progression of the GSS-API specification on the standards track.
このドキュメントはバージョン2、Generic Security Service Application Program Interface(GSS API)のUpdate1にC言語結合を指定します。(Generic Security Service Application Program InterfaceはRFC-2743[GSSAPI]の言語から独立している概念的なレベルで説明されます)。 実装経験と連絡要求に対応して特定の漸進的変化を作って、それはRFC-1509を時代遅れにします。 したがって、このメモかそれの後継者バージョンが標準化過程に関するGSS-API仕様のその後の進行の基礎になることを意図します。
The Generic Security Service Application Programming Interface provides security services to its callers, and is intended for implementation atop a variety of underlying cryptographic mechanisms. Typically, GSS-API callers will be application protocols into which security enhancements are integrated through invocation of services provided by the GSS-API. The GSS-API allows a caller application to authenticate a principal identity associated with a peer application, to delegate rights to a peer, and to apply security services such as confidentiality and integrity on a per-message basis.
Generic Security Service Application Programming Interfaceは訪問者へのセキュリティー・サービスを提供して、実装のためにさまざまな基本的な暗号のメカニズムの上で意図します。GSS-API訪問者はどのセキュリティ増進がGSS-APIによって提供されたサービスの実施を通して統合しているかへの通常、アプリケーション・プロトコルになるでしょう。 GSS-APIで、訪問者アプリケーションは、同輩アプリケーションに関連している主要なアイデンティティを認証して、同輩への権利を代表として派遣して、1メッセージあたり1個のベースに秘密性や保全などのセキュリティー・サービスを適用します。
Wray Standards Track [Page 1] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[1ページ]: C-結合2000年1月
1. Introduction
1. 序論
The Generic Security Service Application Programming Interface [GSSAPI] provides security services to calling applications. It allows a communicating application to authenticate the user associated with another application, to delegate rights to another application, and to apply security services such as confidentiality and integrity on a per-message basis.
Generic Security Service Application Programming Interface[GSSAPI]はアプリケーションと呼ぶことへのセキュリティー・サービスを提供します。 それで、交信アプリケーションは、別のアプリケーションに関連しているユーザを認証して、別のアプリケーションへの権利を代表として派遣して、1メッセージあたり1個のベースに秘密性や保全などのセキュリティー・サービスを適用します。
There are four stages to using the GSS-API:
GSS-APIを使用することへの4つのステージがあります:
a) The application acquires a set of credentials with which it may prove its identity to other processes. The application's credentials vouch for its global identity, which may or may not be related to any local username under which it may be running.
a) アプリケーションはそれがアイデンティティを立証するかもしれない1セットの資格証明書を他のプロセスに取得します。 アプリケーションの資格証明書はグローバルなアイデンティティを保証します。(それは、それが稼働しているかもしれないどんなローカルのユーザ名にも関連するかもしれません)。
b) A pair of communicating applications establish a joint security context using their credentials. The security context is a pair of GSS-API data structures that contain shared state information, which is required in order that per-message security services may be provided. Examples of state that might be shared between applications as part of a security context are cryptographic keys, and message sequence numbers. As part of the establishment of a security context, the context initiator is authenticated to the responder, and may require that the responder is authenticated in turn. The initiator may optionally give the responder the right to initiate further security contexts, acting as an agent or delegate of the initiator. This transfer of rights is termed delegation, and is achieved by creating a set of credentials, similar to those used by the initiating application, but which may be used by the responder.
b) 1組の交信アプリケーションは、それらの資格証明書を使用することで共同セキュリティ文脈を確立します。 セキュリティ文脈は1メッセージあたりのセキュリティー・サービスを提供できるように必要である共有された州の情報を含む1組のGSS-APIデータ構造です。 セキュリティ文脈の一部としてアプリケーションの間で共有されるかもしれない状態に関する例は、暗号化キーと、メッセージ通番です。 セキュリティ文脈の確立の一部として、文脈創始者は、応答者に認証されて、応答者が順番に認証されるのを必要とするかもしれません。 創始者は任意にさらなるセキュリティ文脈を開始する権利を応答者に与えるかもしれません、創始者のエージェントか代表として務めて。 この権利譲渡は、委譲と呼ばれて、1セットの資格証明書を作成することによって、達成されます、開始アプリケーションで使用される応答者によって使用されるかもしれないものと同様です。
To establish and maintain the shared information that makes up the security context, certain GSS-API calls will return a token data structure, which is an opaque data type that may contain cryptographically protected data. The caller of such a GSS-API routine is responsible for transferring the token to the peer application, encapsulated if necessary in an application- application protocol. On receipt of such a token, the peer application should pass it to a corresponding GSS-API routine which will decode the token and extract the information, updating the security context state information accordingly.
共有された情報を確立して、保守するために、それはセキュリティ文脈を作ります、GSS-API呼び出しがトークンデータ構造を返すのを確信しています。(データ構造は暗号で保護されたデータを含むかもしれない不明瞭なデータ型です)。 そのようなGSS-APIルーチンの訪問者は、同輩アプリケーションにトークンを移すのに責任があって、必要なら、アプリケーションアプリケーション・プロトコルでカプセル化されます。 そのようなトークンを受け取り次第、同輩アプリケーションはトークンを解読して、情報を抜粋する対応するGSS-APIルーチンにそれを通過するべきです、それに従って、セキュリティ文脈州の情報をアップデートして。
Wray Standards Track [Page 2] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[2ページ]: C-結合2000年1月
c) Per-message services are invoked to apply either:
c) 1メッセージあたりのサービスは適用するために呼び出されます:
integrity and data origin authentication, or confidentiality, integrity and data origin authentication to application data, which are treated by GSS-API as arbitrary octet-strings. An application transmitting a message that it wishes to protect will call the appropriate GSS-API routine (gss_get_mic or gss_wrap) to apply protection, specifying the appropriate security context, and send the resulting token to the receiving application. The receiver will pass the received token (and, in the case of data protected by gss_get_mic, the accompanying message-data) to the corresponding decoding routine (gss_verify_mic or gss_unwrap) to remove the protection and validate the data.
アプリケーションデータへの保全とデータ発生源認証か、秘密性と、保全とデータ発生源認証。(アプリケーションデータは任意の八重奏ストリングとしてGSS-APIによって扱われます)。 保護したがっているというメッセージを送るアプリケーションは、適切なセキュリティ関係を指定して、保護を適用して、結果として起こるトークンを受信アプリケーションに送るために、適切なGSS-APIルーチン(gss_は_micかgss_包装を手に入れる)を呼ぶでしょう。 受信機は、保護を取り除いて、データを有効にするために、容認されたトークン(gss_によって保護されたデータの場合では、_micを手に入れてください、付随のメッセージデータ)を対応する解読ルーチン(gss_が_micについて確かめるか、またはgss_は開けられる)に通過するでしょう。
d) At the completion of a communications session (which may extend across several transport connections), each application calls a GSS-API routine to delete the security context. Multiple contexts may also be used (either successively or simultaneously) within a single communications association, at the option of the applications.
d) コミュニケーションセッション(数人の輸送の接続に達するかもしれない)の完成のときに、各アプリケーションは、セキュリティ文脈を削除するためにGSS-APIルーチンを呼びます。 また、複数の文脈が単一のコミュニケーション協会の中で使用されるかもしれません(相次ぐか同時)、アプリケーションの選択のときに。
2. GSS-API Routines
2. GSS-APIルーチン
This section lists the routines that make up the GSS-API, and offers a brief description of the purpose of each routine. Detailed descriptions of each routine are listed in alphabetical order in section 5.
このセクションは、GSS-APIを作るルーチンを記載して、それぞれのルーチンの目的の簡単な説明を提供します。 それぞれのルーチンの詳述はアルファベット順にセクション5で記載されています。
Table 2-1 GSS-API Credential-management Routines
テーブル2-1 GSS-API資格証明管理ルーチン
Routine Section Function ------- ------- -------- gss_acquire_cred 5.2 Assume a global identity; Obtain a GSS-API credential handle for pre-existing credentials. gss_add_cred 5.3 Construct credentials incrementally gss_inquire_cred 5.21 Obtain information about a credential gss_inquire_cred_by_mech 5.22 Obtain per-mechanism information about a credential. gss_release_cred 5.27 Discard a credential handle.
通常のセクション機能------- ------- -------- gss_は_信用5.2のAssumeのaグローバルなアイデンティティを取得します。 資格証明書_が、_信用5.3Construct資格証明書が増加してgssすると言い足すgssを先在させるための_が_mechに、5.22に、_gss_が_信用_について問い合わせるという資格証明書の信用5.21Obtain情報について問い合わせるGSS-APIの資格証明ハンドルを入手してください。a資格証明書gss_リリース_信用5.27のDiscardのa資格証明ハンドルの1メカニズムあたりのObtain情報。
Wray Standards Track [Page 3] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[3ページ]: C-結合2000年1月
Table 2-2 GSS-API Context-Level Routines
テーブル2-2 GSS-API文脈レベルルーチン
Routine Section Function ------- ------- -------- gss_init_sec_context 5.19 Initiate a security context with a peer application gss_accept_sec_context 5.1 Accept a security context initiated by a peer application gss_delete_sec_context 5.9 Discard a security context gss_process_context_token 5.25 Process a token on a security context from a peer application gss_context_time 5.7 Determine for how long a context will remain valid gss_inquire_context 5.20 Obtain information about a security context gss_wrap_size_limit 5.34 Determine token-size limit for gss_wrap on a context gss_export_sec_context 5.14 Transfer a security context to another process gss_import_sec_context 5.17 Import a transferred context
通常のセクション機能------- ------- -------- a同輩アプリケーションgss_がある文脈5.19Initiate aセキュリティ文脈が_a同輩アプリケーションgss_によって開始された秒_文脈5.1Accept aセキュリティ文脈を受け入れるgss_イニット_秒の_はセキュリティ文脈で同輩アプリケーションgss_文脈_時間5から_秒_文脈5.9Discard aセキュリティ文脈gss_プロセス_文脈_トークン5.25Process aトークンを削除します; 7は、どれくらい長い背景が有効なgss_のままで残るように_別のプロセスgss_へのセキュリティ文脈が、_秒_文脈5.17Importがわたっている文脈であることを意味するという文脈gss_輸出_秒_文脈5.14Transferの上のgss_包装のためのセキュリティ文脈gss_包装_サイズ_限界5.34Determineトークンサイズ限界の文脈5.20Obtain情報について問い合わせるように決定するか。
Table 2-3 GSS-API Per-message Routines
テーブル2-3 1メッセージあたりのGSS-APIルーチン
Routine Section Function ------- ------- -------- gss_get_mic 5.15 Calculate a cryptographic message integrity code (MIC) for a message; integrity service gss_verify_mic 5.32 Check a MIC against a message; verify integrity of a received message gss_wrap 5.33 Attach a MIC to a message, and optionally encrypt the message content; confidentiality service gss_unwrap 5.31 Verify a message with attached MIC, and decrypt message content if necessary.
通常のセクション機能------- ------- -------- gss_はメッセージのために、暗号のメッセージの保全コード(MIC)を_mic5.15Calculateに得ます。 保全サービスgss_はメッセージに対して_mic5.32Check a MICについて確かめます。 容認されたメッセージgss_包装5.33Attach a MICの保全についてメッセージに確かめてください、そして、任意にメッセージ内容を暗号化してください。 秘密性サービスgss_は付属MICと共に5.31Verify aメッセージを開けて、必要なら、メッセージ内容を解読します。
Wray Standards Track [Page 4] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[4ページ]: C-結合2000年1月
Table 2-4 GSS-API Name manipulation Routines
テーブル2-4GSS-API Name操作Routines
Routine Section Function ------- ------- -------- gss_import_name 5.16 Convert a contiguous string name to internal-form gss_display_name 5.10 Convert internal-form name to text gss_compare_name 5.6 Compare two internal-form names
通常のセクション機能------- ------- -------- gss_は_テキストgss_への内部のフォームgss_ディスプレイ_名5.10のConvert内部のフォーム名への隣接のストリング名が比較する名前5.16Convertに_名前5.6Compare two内部のフォーム名をインポートします。
gss_release_name 5.28 Discard an internal-form name gss_inquire_names_for_mech 5.24 List the name-types supported by the specified mechanism gss_inquire_mechs_for_name 5.23 List mechanisms that support the specified name-type gss_canonicalize_name 5.5 Convert an internal name to an MN gss_export_name 5.13 Convert an MN to export form gss_duplicate_name 5.12 Create a copy of an internal name
__名前タイプが5.5というgss_がcanonicalizeする指定された名前タイプ_名のConvertが内部名であるとミネソタgss_にサポートする_名5.23のListメカニズムのためにgss_が問い合わせる指定されたメカニズムで_mechs_をサポートしたmech5.24Listがフォームgss_写し_名5.12のCreateが内部名のコピーであるとエクスポートするために_名前5.13Convertにミネソタをエクスポートするので、gss_リリース_は内部のフォーム名前gss_が問い合わせる5.28Discardを_名と命名します。
Table 2-5 GSS-API Miscellaneous Routines
テーブル2-5 GSS-APIの種々雑多なルーチン
Routine Section Function ------- ------- -------- gss_add_oid_set_member 5.4 Add an object identifier to a set gss_display_status 5.11 Convert a GSS-API status code to text gss_indicate_mechs 5.18 Determine available underlying authentication mechanisms gss_release_buffer 5.26 Discard a buffer gss_release_oid_set 5.29 Discard a set of object identifiers gss_create_empty_oid_set 5.8 Create a set containing no object identifiers gss_test_oid_set_member 5.30 Determines whether an object identifier is a member of a set.
通常のセクション機能------- ------- -------- gss_は_oid_セット_メンバー5.4Addのためにセットgss_ディスプレイ_状態5.11にオブジェクト識別子を追加します。gss_リリース_バッファ5.26Discard aバッファgss_リリース_oid_セット5.29Discard aが設定したオブジェクト識別子gss_のConvertテキストgss_へのステータスコードが示すGSS-API_mechs5.18のDetermineの利用可能な基本的な認証機構は_空の_oid_セット5.8を創設します。_オブジェクト識別子gss_テストがないoid_を含むように設定されたCreate aはオブジェクト識別子が1セットのメンバーであるか否かに関係なく、_メンバー5.30Determinesを設定しました。
Individual GSS-API implementations may augment these routines by providing additional mechanism-specific routines if required functionality is not available from the generic forms. Applications are encouraged to use the generic routines wherever possible on portability grounds.
個々のGSS-API実行は、必要なら機能性が利用可能でない追加メカニズム特有のルーチンにジェネリックフォームを提供することによって、これらのルーチンを増大させるかもしれません。アプリケーションがどこでも、移植性の理由で可能であるところでジェネリックルーチンを使用するよう奨励されます。
Wray Standards Track [Page 5] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[5ページ]: C-結合2000年1月
3. Data Types and Calling Conventions
3. データ型と呼び出し規則
The following conventions are used by the GSS-API C-language bindings:
以下のコンベンションはGSS-API C言語結合で使用されます:
3.1. Integer types
3.1. 整数型
GSS-API uses the following integer data type:
GSS-APIは以下の整数データ型を使用します:
OM_uint32 32-bit unsigned integer
OM_uint32 32によって噛み付かれた符号のない整数
Where guaranteed minimum bit-count is important, this portable data type is used by the GSS-API routine definitions. Individual GSS-API implementations will include appropriate typedef definitions to map this type onto a built-in data type. If the platform supports the X/Open xom.h header file, the OM_uint32 definition contained therein should be used; the GSS-API header file in Appendix A contains logic that will detect the prior inclusion of xom.h, and will not attempt to re-declare OM_uint32. If the X/Open header file is not available on the platform, the GSS-API implementation should use the smallest natural unsigned integer type that provides at least 32 bits of precision.
最低保証額ビットカウントが重要であるところでは、この携帯用のデータ型はGSS-APIの通常の定義で使用されます。 個々のGSS-API実行は、このタイプを内蔵のデータ型に写像するために適切なtypedef定義を含むでしょう。 プラットホームがX/Open xom.hヘッダーファイルをサポートするなら、そこに含まれたOM_uint32定義は使用されるべきです。 Appendix AのGSS-APIヘッダーファイルはxom.hの先の包含を検出して、OM_がuint32であると再宣言するのを試みない論理を含んでいます。 X/Openヘッダーファイルがプラットホームで利用可能でないなら、GSS-API実行は少なくとも32ビットの精度を提供する最も小さい自然な符号なし整数型を使用するべきです。
3.2. String and similar data
3.2. ストリングと同様のデータ
Many of the GSS-API routines take arguments and return values that describe contiguous octet-strings. All such data is passed between the GSS-API and the caller using the gss_buffer_t data type. This data type is a pointer to a buffer descriptor, which consists of a length field that contains the total number of bytes in the datum, and a value field which contains a pointer to the actual datum:
GSS-APIルーチンの多くが、議論を取って、隣接の八重奏ストリングについて説明する値を返します。 そのようなすべてのデータが、GSS-APIと訪問者の間でgss_バッファ_tデータ型を使用することで通過されます。 このデータ型はデータのバイトの総数を含む長さの分野から成るバッファ記述子と実際のデータに指針を含む値の分野への指針です:
typedef struct gss_buffer_desc_struct { size_t length; void *value; } gss_buffer_desc, *gss_buffer_t;
_typedef struct gss_バッファ_desc_structサイズ_tの長さ; 空間*値;のgss_バッファdesc、*gss_バッファ_t。
Storage for data returned to the application by a GSS-API routine using the gss_buffer_t conventions is allocated by the GSS-API routine. The application may free this storage by invoking the gss_release_buffer routine. Allocation of the gss_buffer_desc object is always the responsibility of the application; unused gss_buffer_desc objects may be initialized to the value GSS_C_EMPTY_BUFFER.
GSS-APIルーチンでgss_バッファ_tコンベンションを使用するGSS-APIルーチンでアプリケーションに返されたデータのためのストレージを割り当てます。 アプリケーションは、gss_リリース_バッファルーチンを呼び出すことによって、このストレージを解放するかもしれません。 いつもgss_バッファ_descオブジェクトの配分はアプリケーションの責任です。 未使用のgss_バッファ_descオブジェクトは_値GSS_CのEMPTY_BUFFERに初期化されるかもしれません。
Wray Standards Track [Page 6] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[6ページ]: C-結合2000年1月
3.2.1. Opaque data types
3.2.1. 不明瞭なデータ型
Certain multiple-word data items are considered opaque data types at the GSS-API, because their internal structure has no significance either to the GSS-API or to the caller. Examples of such opaque data types are the input_token parameter to gss_init_sec_context (which is opaque to the caller), and the input_message parameter to gss_wrap (which is opaque to the GSS-API). Opaque data is passed between the GSS-API and the application using the gss_buffer_t datatype.
ある複数の単語データ項目はGSS-APIの不明瞭なデータ型であると考えられます、彼らの内部の構造がGSS-API、または、訪問者に意味を全く持っていないので。 そのような不明瞭なデータ型に関する例は、gss_イニット_秒_文脈への入力_トークンパラメタ(訪問者にとって、不透明である)と、gss_包装への入力_メッセージパラメタ(GSS-APIに不透明である)です。 不明瞭なデータは、GSS-APIとアプリケーションの間でgss_バッファ_tデータ型式を使用することで通過されます。
3.2.2. Character strings
3.2.2. 文字列
Certain multiple-word data items may be regarded as simple ISO Latin-1 character strings. Examples are the printable strings passed to gss_import_name via the input_name_buffer parameter. Some GSS-API routines also return character strings. All such character strings are passed between the application and the GSS-API implementation using the gss_buffer_t datatype, which is a pointer to a gss_buffer_desc object.
ある複数の単語データ項目は簡単なISOラテン語-1文字列と見なされるかもしれません。 例は入力_名前_バッファパラメタでgss_輸入_名に渡された印刷可能なストリングです。 また、いくつかのGSS-APIルーチンが文字列を返します。 そのようなすべての文字列が、アプリケーションとGSS-API実行の間でgss_バッファ_tデータ型式(gss_バッファ_descオブジェクトへの指針である)を使用することで通過されます。
When a gss_buffer_desc object describes a printable string, the length field of the gss_buffer_desc should only count printable characters within the string. In particular, a trailing NUL character should NOT be included in the length count, nor should either the GSS-API implementation or the application assume the presence of an uncounted trailing NUL.
gss_バッファ_descオブジェクトが印刷可能なストリングについて説明するとき、_gss_バッファdescの長さの分野はストリングの中に印刷可能なキャラクタを数えるだけであるべきです。 特に、長さのカウントに引きずっているNULキャラクタを含むべきではありません、そして、GSS-API実行かアプリケーションのどちらかが非勘定された引きずっているNULの存在を仮定するべきではありません。
3.3. Object Identifiers
3.3. オブジェクト識別子
Certain GSS-API procedures take parameters of the type gss_OID, or Object identifier. This is a type containing ISO-defined tree- structured values, and is used by the GSS-API caller to select an underlying security mechanism and to specify namespaces. A value of type gss_OID has the following structure:
GSS-API手順がパラメタを取るのをタイプgss_OID、またはObject識別子を確信しています。 これは、ISOによって定義された木の構造化された値を含むタイプであり、基本的なセキュリティー対策を選択して、名前空間を指定するのにGSS-API訪問者によって使用されます。 タイプgss_OIDの値には、以下の構造があります:
typedef struct gss_OID_desc_struct { OM_uint32 length; void *elements; } gss_OID_desc, *gss_OID;
typedef struct gss_OID_desc_struct OM_uint32の長さ; 空間*要素;のgss_OID_desc、*gss_OID。
The elements field of this structure points to the first byte of an octet string containing the ASN.1 BER encoding of the value portion of the normal BER TLV encoding of the gss_OID. The length field contains the number of bytes in this value. For example, the gss_OID value corresponding to {iso(1) identified-organization(3) icd- ecma(12) member-company(2) dec(1011) cryptoAlgorithms(7) DASS(5)}, meaning the DASS X.509 authentication mechanism, has a length field of 7 and an elements field pointing to seven octets containing the
この構造の要素分野はgss_OIDの正常なBER TLVコード化の値の部分のASN.1BERコード化を含む八重奏ストリングの最初のバイトを示します。 長さの分野はこの値におけるバイト数を含んでいます。 例えば、iso(1)の特定された組織(3)のicd- ecma(12)連盟会社(2)DEC社(1011)のcryptoAlgorithms(7)ダス(5)にとって、対応するgss_OID価値はDASS X.509認証機構を意味して、7の長さの分野と7つの八重奏を示す要素分野を含むようにします。
Wray Standards Track [Page 7] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[7ページ]: C-結合2000年1月
following octal values: 53,14,2,207,163,7,5. GSS-API implementations should provide constant gss_OID values to allow applications to request any supported mechanism, although applications are encouraged on portability grounds to accept the default mechanism. gss_OID values should also be provided to allow applications to specify particular name types (see section 3.10). Applications should treat gss_OID_desc values returned by GSS-API routines as read-only. In particular, the application should not attempt to deallocate them with free(). The gss_OID_desc datatype is equivalent to the X/Open OM_object_identifier datatype[XOM].
次の8進値: 53,14,2,207,163,7,5. GSS-API実行はアプリケーションが受け入れる移植性の根拠で奨励されますが、OIDがアプリケーションがどんなサポートしているメカニズムも要求するのを許容するために評価する一定のgss_にデフォルトメカニズムを供給するべきです。また、アプリケーションが特定の名前タイプを指定するのを許容するためにgss_OID値を提供するべきです(セクション3.10を見てください)。 アプリケーションは書き込み禁止としてGSS-APIルーチンで返されたgss_OID_desc値を扱うべきです。 特に、アプリケーションは自由な()でdeallocateにそれらを試みるべきではありません。 gss_OID_descデータ型式はX/Open OM_オブジェクト_識別子データ型式[XOM]に同等です。
3.4. Object Identifier Sets
3.4. オブジェクト識別子セット
Certain GSS-API procedures take parameters of the type gss_OID_set. This type represents one or more object identifiers (section 2.3). A gss_OID_set object has the following structure:
あるGSS-API手順はタイプgss_OID_セットのパラメタを取ります。 このタイプは1つ以上のオブジェクト識別子(セクション2.3)を表します。 gss_OID_セットオブジェクトには、以下の構造があります:
typedef struct gss_OID_set_desc_struct { size_t count; gss_OID elements; } gss_OID_set_desc, *gss_OID_set;
*typedef struct gss_OID_は_desc_structサイズ_tカウント; gss_OID要素;gss_OID_セット_descを設定して、gss_OID_はセットしました。
The count field contains the number of OIDs within the set. The elements field is a pointer to an array of gss_OID_desc objects, each of which describes a single OID. gss_OID_set values are used to name the available mechanisms supported by the GSS-API, to request the use of specific mechanisms, and to indicate which mechanisms a given credential supports.
カウント分野はセットの中にOIDsの数を含んでいます。 要素、分野はgss_OID_descオブジェクトの配列への指針です。それはそれぞれOID_が設定した_がGSS-APIによってサポートされた利用可能なメカニズムを命名して、特定のメカニズムの使用を要求して、与えられた資格証明書がどのメカニズムをサポートするかを示すのに使用されるのを評価する独身のOID. gssについて説明します。
All OID sets returned to the application by GSS-API are dynamic objects (the gss_OID_set_desc, the "elements" array of the set, and the "elements" array of each member OID are all dynamically allocated), and this storage must be deallocated by the application using the gss_release_oid_set() routine.
GSS-APIによってアプリケーションに返されたすべてのOIDセットがダイナミックなオブジェクト(desc、セットの「要素」配列、および「要素」が整列させるそれぞれのメンバーOIDのgss_OID_セット_はダイナミックにすべて割り当てられる)です、そして、gss_リリース_oid_セット()ルーチンを使用しながら、アプリケーションでこのストレージを「反-割り当て」なければなりません。
3.5. Credentials
3.5. 資格証明書
A credential handle is a caller-opaque atomic datum that identifies a GSS-API credential data structure. It is represented by the caller- opaque type gss_cred_id_t, which should be implemented as a pointer or arithmetic type. If a pointer implementation is chosen, care must be taken to ensure that two gss_cred_id_t values may be compared with the == operator.
資格証明ハンドルはGSS-APIの資格証明データ構造を特定する訪問者不明瞭な原子データです。 それは訪問者の不透明なタイプgss_信用_イド_tによって表されます。(_は指針か算術型として実装されるべきです)。 指針実装が選ばれているなら、2つのgss_信用_イド_t値が=オペレータにたとえられるかもしれないのを保証するために注意しなければなりません。
GSS-API credentials can contain mechanism-specific principal authentication data for multiple mechanisms. A GSS-API credential is composed of a set of credential-elements, each of which is applicable to a single mechanism. A credential may contain at most one
GSS-API資格証明書は複数のメカニズムのためのメカニズム特有の主要な認証データを含むことができます。GSS-API資格証明書は1セットの資格証明要素で構成されます。それはそれぞれただ一つのメカニズムに適切です。 資格証明書は1つを高々含むかもしれません。
Wray Standards Track [Page 8] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[8ページ]: C-結合2000年1月
credential-element for each supported mechanism. A credential-element identifies the data needed by a single mechanism to authenticate a single principal, and conceptually contains two credential-references that describe the actual mechanism-specific authentication data, one to be used by GSS-API for initiating contexts, and one to be used for accepting contexts. For mechanisms that do not distinguish between acceptor and initiator credentials, both references would point to the same underlying mechanism-specific authentication data.
それぞれのための資格証明要素はメカニズムをサポートしました。 資格証明要素は、ただ一つの元本を認証するためにただ一つのメカニズムによって必要とされたデータを特定して、概念的に実際のメカニズム特有の認証データ(文脈を受け入れるのに使用されるために文脈、および1を開始するのにGSS-APIによって使用されるべき1)について説明する2つの資格証明参照箇所を含んでいます。 アクセプタを見分けないメカニズムと創始者資格証明書のために、両方の参照は同じ基本的なメカニズム特有の認証データを示すでしょう。
Credentials describe a set of mechanism-specific principals, and give their holder the ability to act as any of those principals. All principal identities asserted by a single GSS-API credential should belong to the same entity, although enforcement of this property is an implementation-specific matter. The GSS-API does not make the actual credentials available to applications; instead a credential handle is used to identify a particular credential, held internally by GSS-API. The combination of GSS-API credential handle and mechanism identifies the principal whose identity will be asserted by the credential when used with that mechanism.
資格証明書は、1セットのメカニズム特有の主体について説明して、それらの主体のどれかとして機能する能力を彼らの所有者に与えます。 ただ一つのGSS-API資格証明書によって断言されたすべての主要なアイデンティティが同じ実体に属すべきです、この特性の実施は実装特有の問題ですが。 GSS-APIで、実際の資格証明書はアプリケーションに利用可能になりません。 代わりに、資格証明ハンドルは、GSS-APIによって内部的に保持された特定の資格証明書を特定するのに使用されます。 GSS-APIの資格証明ハンドルとメカニズムの組み合わせはそのメカニズムと共に使用されるとアイデンティティが資格証明書によって断言される主体を特定します。
The gss_init_sec_context and gss_accept_sec_context routines allow the value GSS_C_NO_CREDENTIAL to be specified as their credential handle parameter. This special credential-handle indicates a desire by the application to act as a default principal. While individual GSS-API implementations are free to determine such default behavior as appropriate to the mechanism, the following default behavior by these routines is recommended for portability:
__文脈とgss_が受け入れるgss_イニット_秒のときに、秒_文脈ルーチンは、_値GSS_Cのいいえ_CREDENTIALが彼らの資格証明ハンドルパラメタとして指定されるのを許容します。 この特別な資格証明ハンドルは、デフォルト元本として務めるためにアプリケーションで願望を示します。 個々のGSS-API実行が無料で適宜そのようなデフォルトの振舞いをメカニズムに決定できる間、これらのルーチンによる以下のデフォルトの振舞いは移植性のために推薦されます:
gss_init_sec_context
gss_イニット_秒_文脈
1) If there is only a single principal capable of initiating security contexts for the chosen mechanism that the application is authorized to act on behalf of, then that principal shall be used, otherwise
1) アプリケーションが主体が使用されるものとすることについてその時、そうでないことを代表して行動するのが認可される選ばれたメカニズムのためのセキュリティ文脈を開始できるただ一つの元本しかなければ
2) If the platform maintains a concept of a default network- identity for the chosen mechanism, and if the application is authorized to act on behalf of that identity for the purpose of initiating security contexts, then the principal corresponding to that identity shall be used, otherwise
2) プラットホームがデフォルトの概念を維持するなら、選ばれたメカニズムのためにアイデンティティをネットワークでつないでください。そうすれば、アプリケーションがセキュリティ文脈を開始する目的のためのそのアイデンティティを代表して行動するのが認可されるなら、そのアイデンティティに対応する主体は使用されるものとします、そうではありません。
3) If the platform maintains a concept of a default local identity, and provides a means to map local identities into network-identities for the chosen mechanism, and if the application is authorized to act on behalf of the network- identity image of the default local identity for the purpose of
3) プラットホームがデフォルトの地方のアイデンティティの概念を維持して、選ばれたメカニズムであってアプリケーションが認可されているかどうかのために地方のアイデンティティをネットワークアイデンティティに写像する目的のためのデフォルトの地方のアイデンティティのネットワークアイデンティティイメージを代表して行動する手段を提供するなら
Wray Standards Track [Page 9] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[9ページ]: C-結合2000年1月
initiating security contexts using the chosen mechanism, then the principal corresponding to that identity shall be used, otherwise
選ばれたメカニズムを使用することでセキュリティ文脈を開始して、そして、そのアイデンティティに対応する主体は別の方法で使用されるものとします。
4) A user-configurable default identity should be used.
4) ユーザ構成可能なデフォルトのアイデンティティは使用されるべきです。
gss_accept_sec_context
gss_は_秒_文脈を受け入れます。
1) If there is only a single authorized principal identity capable of accepting security contexts for the chosen mechanism, then that principal shall be used, otherwise
1) 選ばれたメカニズムのためのセキュリティ文脈を受け入れることができるただ一つの認可された主要なアイデンティティしかなければ、その主体は使用されるものとします、そうではありません。
2) If the mechanism can determine the identity of the target principal by examining the context-establishment token, and if the accepting application is authorized to act as that principal for the purpose of accepting security contexts using the chosen mechanism, then that principal identity shall be used, otherwise
2) メカニズムが文脈設立トークンを調べることによって目標主体のアイデンティティを決定できて、受諾アプリケーションがセキュリティ文脈を受け入れる目的のためにそんなに主要であるとして機能するのが選ばれたメカニズムを使用することで認可されるなら、その主要なアイデンティティは使用されるものとします、そうではありません。
3) If the mechanism supports context acceptance by any principal, and if mutual authentication was not requested, any principal that the application is authorized to accept security contexts under using the chosen mechanism may be used, otherwise
3) メカニズムがどんな主体でも文脈承認をサポートして、互いの認証が要求されなかったなら、アプリケーションがセキュリティ文脈を受け入れるのが認可される選ばれたメカニズムを使用するどんな校長も使用されるかもしれません、そうではありません。
4)A user-configurable default identity shall be used.
4) ユーザ構成可能なデフォルトのアイデンティティは使用されるものとします。
The purpose of the above rules is to allow security contexts to be established by both initiator and acceptor using the default behavior wherever possible. Applications requesting default behavior are likely to be more portable across mechanisms and platforms than ones that use gss_acquire_cred to request a specific identity.
上の規則の目的はセキュリティ文脈が創始者とアクセプタの両方によって確立されるのをどこでも、可能であるところでデフォルトの振舞いを使用することで許容することです。 デフォルトの振舞いを要求するアプリケーションはメカニズムとプラットホームの向こう側に、gss_を使用するものが特定のアイデンティティを要求するために_信用を取得するより携帯用である傾向があります。
3.6. Contexts
3.6. 文脈
The gss_ctx_id_t data type contains a caller-opaque atomic value that identifies one end of a GSS-API security context. It should be implemented as a pointer or arithmetic type. If a pointer type is chosen, care should be taken to ensure that two gss_ctx_id_t values may be compared with the == operator.
gss_ctx_イド_tデータ型はGSS-APIセキュリティ文脈の片端を特定する訪問者不透明な原子価を含んでいます。 それは指針か算術型として実装されるべきです。 ポインター型が選ばれているなら、2gss_ctx_イド_t値が=オペレータにたとえられるかもしれないのを保証するために注意するべきです。
The security context holds state information about each end of a peer communication, including cryptographic state information.
セキュリティ文脈は暗号の州の情報を含む同輩コミュニケーションの各端頃に州の情報を保持します。
Wray Standards Track [Page 10] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[10ページ]: C-結合2000年1月
3.7. Authentication tokens
3.7. 認証トークン
A token is a caller-opaque type that GSS-API uses to maintain synchronization between the context data structures at each end of a GSS-API security context. The token is a cryptographically protected octet-string, generated by the underlying mechanism at one end of a GSS-API security context for use by the peer mechanism at the other end. Encapsulation (if required) and transfer of the token are the responsibility of the peer applications. A token is passed between the GSS-API and the application using the gss_buffer_t conventions.
トークンはGSS-APIがGSS-APIセキュリティ文脈の各端のときに文脈データ構造の間の同期を維持するのに使用する訪問者分っているタイプです。 トークンはもう一方の端のときに同輩メカニズムによる使用のためのGSS-APIセキュリティ文脈の片端の発症機序によって生成された暗号で保護された八重奏ストリングです。 トークンのカプセル化(必要なら)と転送は同輩アプリケーションの責任です。 トークンは、GSS-APIとアプリケーションの間でgss_バッファ_tコンベンションを使用することで通過されます。
3.8. Interprocess tokens
3.8. インタプロセストークン
Certain GSS-API routines are intended to transfer data between processes in multi-process programs. These routines use a caller- opaque octet-string, generated by the GSS-API in one process for use by the GSS-API in another process. The calling application is responsible for transferring such tokens between processes in an OS- specific manner. Note that, while GSS-API implementors are encouraged to avoid placing sensitive information within interprocess tokens, or to cryptographically protect them, many implementations will be unable to avoid placing key material or other sensitive data within them. It is the application's responsibility to ensure that interprocess tokens are protected in transit, and transferred only to processes that are trustworthy. An interprocess token is passed between the GSS-API and the application using the gss_buffer_t conventions.
あるGSS-APIルーチンはマルチプロセスプログラムにおけるプロセスの間にデータを移すつもりです。これらのルーチンは別のプロセスのGSS-APIによる使用のために1つのプロセスでGSS-APIによって生成された訪問者の不透明な八重奏ストリングを使用します。 呼ぶアプリケーションはOSの特定の方法でそのようなトークンをプロセスの間に移すのに原因となります。 GSS-API作成者がインタプロセストークンの中に機密情報を置くのを避けるか、または暗号でそれらを保護するよう奨励されている間多くの実装が、それらの中に主要な材料か他の極秘データを置くのを避けることができないことに注意してください。 信頼できるのは、インタプロセストークンがトランジットで保護されて、プロセスだけに移されるのを保証するアプリケーションの責任です。 インタプロセストークンは、GSS-APIとアプリケーションの間でgss_バッファ_tコンベンションを使用することで通過されます。
3.9. Status values
3.9. 状態値
Every GSS-API routine returns two distinct values to report status information to the caller: GSS status codes and Mechanism status codes.
あらゆるGSS-APIルーチンが状態情報を訪問者に報告するために2つの異なった値を返します: GSSステータスコードとMechanismステータスコード。
3.9.1. GSS status codes
3.9.1. GSSステータスコード
GSS-API routines return GSS status codes as their OM_uint32 function value. These codes indicate errors that are independent of the underlying mechanism(s) used to provide the security service. The errors that can be indicated via a GSS status code are either generic API routine errors (errors that are defined in the GSS-API specification) or calling errors (errors that are specific to these language bindings).
GSS-APIルーチンはそれらのOM_uint32機能価値としてステータスコードをGSSに返します。 これらのコードは、発症機序から独立している誤りが以前はよくセキュリティー・サービスを提供していたのを示します。 GSSステータスコードで示すことができる誤りは、ジェネリックAPIルーチン誤り(GSS-API仕様に基づき定義される誤り)か呼ぶ誤り(これらの言語結合に特定の誤り)のどちらかです。
A GSS status code can indicate a single fatal generic API error from the routine and a single calling error. In addition, supplementary status information may be indicated via the setting of bits in the supplementary info field of a GSS status code.
GSSステータスコードはルーチンとただ一つの呼ぶ誤りからただ一つの致命的なジェネリックAPI誤りを示すことができます。 さらに、補っている状態情報はGSSステータスコードの補っているインフォメーション分野でビットの設定で示されるかもしれません。
Wray Standards Track [Page 11] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[11ページ]: C-結合2000年1月
These errors are encoded into the 32-bit GSS status code as follows:
これらの誤りは以下の32ビットのGSSステータスコードにコード化されます:
MSB LSB |------------------------------------------------------------| | Calling Error | Routine Error | Supplementary Info | |------------------------------------------------------------| Bit 31 24 23 16 15 0
MSB LSB|------------------------------------------------------------| | 誤りと呼びます。| 通常の誤り| 補っているインフォメーション| |------------------------------------------------------------| ビット31 24 23 16 15 0
Hence if a GSS-API routine returns a GSS status code whose upper 16 bits contain a non-zero value, the call failed. If the calling error field is non-zero, the invoking application's call of the routine was erroneous. Calling errors are defined in table 5-1. If the routine error field is non-zero, the routine failed for one of the routine- specific reasons listed below in table 5-2. Whether or not the upper 16 bits indicate a failure or a success, the routine may indicate additional information by setting bits in the supplementary info field of the status code. The meaning of individual bits is listed below in table 5-3.
したがって、GSS-APIルーチンが上側の16ビットが非ゼロ値を含むGSSステータスコードを返すなら、呼び出しは失敗しました。 呼んでいる誤り分野が非ゼロであるなら、呼び出しアプリケーションのルーチンの呼び出しは誤っていました。 呼ぶ誤りはテーブル5-1で定義されます。 通常の誤り分野が非ゼロであるなら、ルーチンは個人的にはテーブル5-2に以下にリストアップされたルーチンの特定の理由をしそこないました。 上側の16ビットが失敗か成功を示すか否かに関係なく、ルーチンは、ステータスコードの補っているインフォメーション分野にビットをはめ込むことによって、追加情報を示すかもしれません。 個々のビットの意味はテーブル5-3に以下に記載されています。
Table 3-1 Calling Errors
テーブル3-1 誤りと呼ぶこと。
Name Value in field Meaning ---- -------------- ------- GSS_S_CALL_INACCESSIBLE_READ 1 A required input parameter could not be read GSS_S_CALL_INACCESSIBLE_WRITE 2 A required output parameter could not be written. GSS_S_CALL_BAD_STRUCTURE 3 A parameter was malformed
分野Meaningの名前Value---- -------------- ------- S_CALL_INACCESSIBLE_WRITE2のA必要な出力パラメタが書かれていないかもしれないGSS_をGSS_S_CALL_INACCESSIBLE_READ1のA必要な入力パラメタに読み込むことができませんでした。 GSS_S_CALL_BAD_STRUCTURE3Aパラメタは奇形でした。
Wray Standards Track [Page 12] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[12ページ]: C-結合2000年1月
Table 3-2 Routine Errors
テーブル3-2 通常の誤り
Name Value in field Meaning ---- -------------- ------- GSS_S_BAD_MECH 1 An unsupported mechanism was requested GSS_S_BAD_NAME 2 An invalid name was supplied GSS_S_BAD_NAMETYPE 3 A supplied name was of an unsupported type GSS_S_BAD_BINDINGS 4 Incorrect channel bindings were supplied GSS_S_BAD_STATUS 5 An invalid status code was supplied GSS_S_BAD_MIC GSS_S_BAD_SIG 6 A token had an invalid MIC GSS_S_NO_CRED 7 No credentials were supplied, or the credentials were unavailable or inaccessible. GSS_S_NO_CONTEXT 8 No context has been established GSS_S_DEFECTIVE_TOKEN 9 A token was invalid GSS_S_DEFECTIVE_CREDENTIAL 10 A credential was invalid GSS_S_CREDENTIALS_EXPIRED 11 The referenced credentials have expired GSS_S_CONTEXT_EXPIRED 12 The context has expired GSS_S_FAILURE 13 Miscellaneous failure (see text) GSS_S_BAD_QOP 14 The quality-of-protection requested could not be provided GSS_S_UNAUTHORIZED 15 The operation is forbidden by local security policy GSS_S_UNAVAILABLE 16 The operation or option is unavailable GSS_S_DUPLICATE_ELEMENT 17 The requested credential element already exists GSS_S_NAME_NOT_MN 18 The provided name was not a mechanism name
分野Meaningの名前Value---- -------------- ------- GSS_S_BAD_MECH1のAnのサポートされないメカニズムは要求された_GSS_S BAD_NAME2のAnの無効の名が供給された_GSS_S BAD_NAMETYPE3のA供給された名が結合が提供されたサポートされないタイプ_GSS_S BAD_BINDINGS4Incorrectチャンネルでは、GSS_S_BAD_STATUS5のAnの無効のステータスコードが資格証明書が供給されたGSS_S_BAD_MIC GSS_S_BAD_SIG6Aトークンが_いいえ_CRED7いいえ資格証明書が供給された無効のMIC GSS_Sを持っていたか、入手できないか、または近づきがたかったということであったということであったということであったということでした。 GSS_S_いいえ_CONTEXT8いいえ文脈が確立した_GSS_S DEFECTIVE_TOKEN9Aトークンが無効の_GSS_S DEFECTIVE_CREDENTIAL10A資格証明書が無効の_GSS_S CREDENTIALS_EXPIRED11であったということであったということである、参照をつけられた資格証明書がGSS_Sを吐き出した、_文脈が持っているCONTEXT_EXPIRED12は_GSS_S_FAILURE13Miscellaneousの故障(テキストを見る)GSS_S BAD_QOPを吐き出しました; 14_提供されたGSSが操作がローカルの安全保障政策GSS_S_によって禁じられるS_UNAUTHORIZED15であったかもしれないなら要求された保護の品質UNAVAILABLE16、操作かオプションが要求された資格証明要素の入手できない_GSS_S DUPLICATE_ELEMENT17である、__メカニズムではなく、存在だったという提供された名前が命名するミネソタ18ではなくGSS_S NAME_が既に、存在します。
Wray Standards Track [Page 13] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[13ページ]: C-結合2000年1月
Table 3-3 Supplementary Status Bits
テーブル3-3 補っているステータスビット
Name Bit Number Meaning ---- ---------- ------- GSS_S_CONTINUE_NEEDED 0 (LSB) Returned only by gss_init_sec_context or gss_accept_sec_context. The routine must be called again to complete its function. See routine documentation for detailed description GSS_S_DUPLICATE_TOKEN 1 The token was a duplicate of an earlier token GSS_S_OLD_TOKEN 2 The token's validity period has expired GSS_S_UNSEQ_TOKEN 3 A later token has already been processed GSS_S_GAP_TOKEN 4 An expected per-message token was not received
名前ビット数の意味---- ---------- ------- GSS_S_CONTINUE_が、gss_イニット_秒_文脈だけで、0(LSB)を返す必要があったか、またはgss_は_秒_文脈を受け入れます。 機能を完成するために再びルーチンを呼ばなければなりません。 _詳述GSS_S DUPLICATE_TOKENに関して通常のドキュメンテーションを見てください、1、トークンが_以前のトークンGSS_S OLD_TOKENの写しであった、2、トークンの有効期間、満期の_GSS_S UNSEQ_TOKEN3のA後のトークンは既に処理_GSS_S GAP_TOKEN4Anが、1メッセージあたりのトークンが受け取られなかったと予想したということです。
The routine documentation also uses the name GSS_S_COMPLETE, which is a zero value, to indicate an absence of any API errors or supplementary information bits.
また、通常のドキュメンテーションはCOMPLETEという名前GSS_S_を使用します。(_は、どんなAPI誤りや補助情報ビットの欠如も示すためにはaゼロ値です)。
All GSS_S_xxx symbols equate to complete OM_uint32 status codes, rather than to bitfield values. For example, the actual value of the symbol GSS_S_BAD_NAMETYPE (value 3 in the routine error field) is 3<<16. The macros GSS_CALLING_ERROR(), GSS_ROUTINE_ERROR() and GSS_SUPPLEMENTARY_INFO() are provided, each of which takes a GSS status code and removes all but the relevant field. For example, the value obtained by applying GSS_ROUTINE_ERROR to a status code removes the calling errors and supplementary info fields, leaving only the routine errors field. The values delivered by these macros may be directly compared with a GSS_S_xxx symbol of the appropriate type. The macro GSS_ERROR() is also provided, which when applied to a GSS status code returns a non-zero value if the status code indicated a calling or routine error, and a zero value otherwise. All macros defined by GSS-API evaluate their argument(s) exactly once.
すべてのGSS_S_xxxシンボルがbitfield値にというよりむしろ完全なOM_uint32ステータスコードに一致しています。 例えば、_シンボルGSS_S BAD_NAMETYPE(通常の誤り分野の値3)の実価は3<<16です。 マクロのGSS_CALLING_ERROR()、GSS_ROUTINE_ERROR()、およびGSS_SUPPLEMENTARY_INFO()はそれぞれの提供していてどれが、GSSステータスコードを取って、すべてを取り除くか、しかし、関連分野です。 例えば、GSS_ROUTINE_ERRORをステータスコードに適用することによって得られた値は呼ぶ誤りと補っているインフォメーション野原を取り除きます、通常の誤り野原だけを出て。 これらのマクロによって提供された値は直接適切なタイプのGSS_S_xxxシンボルにたとえられるかもしれません。 また、マクロGSS_ERROR()(GSS状態に付けられるとステータスコードが呼ぶか通常の誤りを示したなら非ゼロが評価して、ゼロが別の方法で評価するリターンをコード化する)を提供します。 GSS-APIによって定義されたすべてのマクロがまさに一度彼らの議論を評価します。
A GSS-API implementation may choose to signal calling errors in a platform-specific manner instead of, or in addition to the routine value; routine errors and supplementary info should be returned via major status values only.
GSS-API実行は、値か通常の値に加えたプラットホーム特有の方法で誤りと呼びながら合図するのを選ぶかもしれません。 通常の誤りと補っているインフォメーションは主要な状態値だけで返されるべきです。
The GSS major status code GSS_S_FAILURE is used to indicate that the underlying mechanism detected an error for which no specific GSS status code is defined. The mechanism-specific status code will provide more details about the error.
FAILUREが使用されているGSSの主要なステータスコードGSS_S_は、発症機序がどんな特定のGSSステータスコードも定義されない誤りを検出したのを示します。 メカニズム特有のステータスコードは誤りに関するその他の詳細を提供するでしょう。
Wray Standards Track [Page 14] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[14ページ]: C-結合2000年1月
3.9.2. Mechanism-specific status codes
3.9.2. メカニズム特有のステータスコード
GSS-API routines return a minor_status parameter, which is used to indicate specialized errors from the underlying security mechanism. This parameter may contain a single mechanism-specific error, indicated by a OM_uint32 value.
GSS-APIルーチンは小さい方の_ステータスパラメタを返します。(それは、基本的なセキュリティー対策から専門化している誤りを示すのに使用されます)。 このパラメタはOM_uint32値によって示されたただ一つのメカニズム特有の誤りを含むかもしれません。
The minor_status parameter will always be set by a GSS-API routine, even if it returns a calling error or one of the generic API errors indicated above as fatal, although most other output parameters may remain unset in such cases. However, output parameters that are expected to return pointers to storage allocated by a routine must always be set by the routine, even in the event of an error, although in such cases the GSS-API routine may elect to set the returned parameter value to NULL to indicate that no storage was actually allocated. Any length field associated with such pointers (as in a gss_buffer_desc structure) should also be set to zero in such cases.
小さい方の_ステータスパラメタはGSS-APIルーチンでいつも設定されるでしょう、致命的であるとして上で示された呼ぶ誤りかジェネリックAPI誤りの1つを返しても、他のほとんどの出力パラメタがそのような場合unsetのままで残るかもしれませんが。 しかしながら、ルーチンでルーチンで割り当てられたストレージに指針を返すと予想される出力パラメタをいつも設定しなければなりません、誤りの場合さえ、そのような場合GSS-APIルーチンは、ストレージが全く実際に割り当てられなかったのを示すNULLに返されたパラメタ値を設定するのを選ぶかもしれませんが。 また、そのような指針(gss_バッファ_desc構造のように)に関連しているどんな長さの分野もそのような場合ゼロに設定されるべきです。
3.10. Names
3.10. 名前
A name is used to identify a person or entity. GSS-API authenticates the relationship between a name and the entity claiming the name.
名前は、人か実体を特定するのに使用されます。 GSS-APIは名前を要求する名前と実体との関係を認証します。
Since different authentication mechanisms may employ different namespaces for identifying their principals, GSSAPI's naming support is necessarily complex in multi-mechanism environments (or even in some single-mechanism environments where the underlying mechanism supports multiple namespaces).
異なった認証機構がそれらの主体を特定するのに異なった名前空間を使うかもしれないので、GSSAPIがサポートを命名するのは、必ずマルチメカニズム環境(または発症機序が複数の名前空間をサポートするいくつかのただ一つのメカニズム環境でさえ)で複雑です。
Two distinct representations are defined for names:
2つの異なった表現が名前のために定義されます:
An internal form. This is the GSS-API "native" format for names, represented by the implementation-specific gss_name_t type. It is opaque to GSS-API callers. A single gss_name_t object may contain multiple names from different namespaces, but all names should refer to the same entity. An example of such an internal name would be the name returned from a call to the gss_inquire_cred routine, when applied to a credential containing credential elements for multiple authentication mechanisms employing different namespaces. This gss_name_t object will contain a distinct name for the entity for each authentication mechanism.
内部のフォーム。 これはタイプという実装特有のgss_名前_tによって表された名前のためのGSS-APIの「ネイティブ」の形式です。 GSS-API訪問者にとって、それは不透明です。 単一のgss_名前_tオブジェクトは異なった名前空間からの複数の名前を含むかもしれませんが、すべての名前が同じ実体について言及するべきです。 そのような内部名に関する例は呼び出しからgss_まで返された名前が_信用ルーチンについて問い合わせます、複数の認証機構のための異なった名前空間を使う資格証明要素を含む資格証明書に適用されるとことでしょう。 このgss_名前_tオブジェクトは各認証機構のための実体のための別個の名前を含むでしょう。
For GSS-API implementations supporting multiple namespaces, objects of type gss_name_t must contain sufficient information to determine the namespace to which each primitive name belongs.
複数の名前空間をサポートするGSS-API実行のために、タイプgss_名前_tのオブジェクトはそれぞれの原始の名前が属する名前空間を決定できるくらいの情報を含まなければなりません。
Wray Standards Track [Page 15] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[15ページ]: C-結合2000年1月
Mechanism-specific contiguous octet-string forms. A format capable of containing a single name (from a single namespace). Contiguous string names are always accompanied by an object identifier specifying the namespace to which the name belongs, and their format is dependent on the authentication mechanism that employs the name. Many, but not all, contiguous string names will be printable, and may therefore be used by GSS-API applications for communication with their users.
メカニズム特有の隣接の八重奏ストリングフォームただ一つの名前(ただ一つの名前空間からの)を含むことができる形式。 隣接のストリング名はいつも名前が属する名前空間を指定するオブジェクト識別子によって伴われます、そして、それらの形式は名前を使う認証機構に依存しています。 すべてではなく、多く、隣接のストリング名は、印刷可能であり、したがって、彼らのユーザとのコミュニケーションのGSS-APIアプリケーションで使用されるかもしれません。
Routines (gss_import_name and gss_display_name) are provided to convert names between contiguous string representations and the internal gss_name_t type. gss_import_name may support multiple syntaxes for each supported namespace, allowing users the freedom to choose a preferred name representation. gss_display_name should use an implementation-chosen printable syntax for each supported name- type.
gss_輸入_名はそれぞれのサポートしている名前空間のために複数の構文をサポートするかもしれません、都合のよい名前表現を選ぶ自由をユーザに許容して。隣接のストリング表現とタイプという内部のgss_名の_tの間の名前を変換するために、ルーチン(_輸入_名とgss_ディスプレイ_が命名するgss)を提供します。gss_ディスプレイ_名は名前タイプであるとサポートされたそれぞれに実装に選ばれた印刷可能な構文を使用するべきです。
If an application calls gss_display_name(), passing the internal name resulting from a call to gss_import_name(), there is no guarantee the the resulting contiguous string name will be the same as the original imported string name. Nor do name-space identifiers necessarily survive unchanged after a journey through the internal name-form. An example of this might be a mechanism that authenticates X.500 names, but provides an algorithmic mapping of Internet DNS names into X.500. That mechanism's implementation of gss_import_name() might, when presented with a DNS name, generate an internal name that contained both the original DNS name and the equivalent X.500 name. Alternatively, it might only store the X.500 name. In the latter case, gss_display_name() would most likely generate a printable X.500 name, rather than the original DNS name.
アプリケーションが、gss_をディスプレイ_名前()と呼ぶなら、呼び出しからgss_輸入_名()まで内部名の結果になることを通過して、オリジナルがストリング名を意味したので、結果として起こる隣接のストリング名が同じになるという保証が全くありません。 また、名前空間識別子は内部名フォームを通した旅行の後に必ず変わりがない状態で存続するというわけではありません。 この例はX.500名を認証しますが、インターネットDNS名のアルゴリズムのマッピングをX.500に供給するメカニズムであるかもしれません。 DNS名を与えるとき、そのメカニズムのgss_輸入_名()の実装はオリジナルのDNS名と同等なX.500名の両方を含んだ内部名を生成するかもしれません。 あるいはまた、それはX.500名を保存するだけであるかもしれません。 後者の場合では、gss_ディスプレイ_名()はたぶんオリジナルのDNS名よりむしろ印刷可能なX.500名を生成するでしょう。
The process of authentication delivers to the context acceptor an internal name. Since this name has been authenticated by a single mechanism, it contains only a single name (even if the internal name presented by the context initiator to gss_init_sec_context had multiple components). Such names are termed internal mechanism names, or "MN"s and the names emitted by gss_accept_sec_context() are always of this type. Since some applications may require MNs without wanting to incur the overhead of an authentication operation, a second function, gss_canonicalize_name(), is provided to convert a general internal name into an MN.
認証のプロセスは文脈アクセプタに内部名を提供します。 この名前がただ一つのメカニズムによって認証されたので、それはただ一つの名前だけを含んでいます(文脈創始者によってgss_イニット_秒_文脈に提示された内部名が複数のコンポーネントを持ったとしても)。 そのような名前が内部のメカニズム名と呼ばれるか、または「ミネソタ」sとgss_によって放たれた名前は_いつもこのタイプには文脈()がある_秒を受け入れます。 いくつかのアプリケーションが被る欠乏なしでMNsを必要とするかもしれないので、一般的な内部名をミネソタに変換するために、認証操作のオーバーヘッド(機能、gss_が_名前()をcanonicalizeする1秒)を提供します。
Comparison of internal-form names may be accomplished via the gss_compare_name() routine, which returns true if the two names being compared refer to the same entity. This removes the need for the application program to understand the syntaxes of the various printable names that a given GSS-API implementation may support. Since GSS-API assumes that all primitive names contained within a
内部のフォーム名の比較はgssを通して達成されて、_が_名前()ルーチンを比較するということであるかもしれません(比較される2つの名前が同じ実体について言及するなら、本当に戻ります)。 これはアプリケーション・プログラムが与えられたGSS-API実行がサポートするかもしれない様々な印刷可能な名前の構文を理解する必要性を取り除きます。 GSS-APIが、それがすべて、aの中に含まれた原始の名前であると仮定するので
Wray Standards Track [Page 16] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[16ページ]: C-結合2000年1月
given internal name refer to the same entity, gss_compare_name() can return true if the two names have at least one primitive name in common. If the implementation embodies knowledge of equivalence relationships between names taken from different namespaces, this knowledge may also allow successful comparison of internal names containing no overlapping primitive elements.
与えられた内部名は同じ実体について言及して、2つの名前が少なくとも1つの原始の名前が共通であるなら、gss_は_()が本当に返すことができる名前を比較します。 また、実装が異なった名前空間から取られた名前の間の等価性関係に関する知識を具体化するなら、この知識は重なっていない原始の要素を含む内部名のうまくいっている比較を許すかもしれません。
When used in large access control lists, the overhead of invoking gss_import_name() and gss_compare_name() on each name from the ACL may be prohibitive. As an alternative way of supporting this case, GSS-API defines a special form of the contiguous string name which may be compared directly (e.g. with memcmp()). Contiguous names suitable for comparison are generated by the gss_export_name() routine, which requires an MN as input. Exported names may be re- imported by the gss_import_name() routine, and the resulting internal name will also be an MN. The gss_OID constant GSS_C_NT_EXPORT_NAME indentifies the "export name" type, and the value of this constant is given in Appendix A. Structurally, an exported name object consists of a header containing an OID identifying the mechanism that authenticated the name, and a trailer containing the name itself, where the syntax of the trailer is defined by the individual mechanism specification. The precise format of an export name is defined in the language-independent GSS-API specification [GSSAPI].
使用されると、大きいアクセスコントロールリスト、_名()とgss_が_名前()をたとえるgss_輸入を呼び出すオーバーヘッドでは、ACLからのそれぞれの名前は禁止であるかもしれません。 本件を支える代替手段方法と、GSS-APIは直接比較されるかもしれない隣接のストリング名の特別な書式を定義します。(例えば、memcmp())で。 比較に適した隣接の名前はgss_輸出_名前()ルーチンで生成されます。(それは、入力されるようにミネソタを必要とします)。 エクスポートしている名前はgss_輸入_名前()ルーチンで再インポートされるかもしれません、そして、また、結果として起こる内部名はミネソタになるでしょう。 _「輸出名」タイプのgss_OIDの一定の_GSS_C NT EXPORT_NAME indentifies、および定数がAppendix A.Structurallyで与えられているこの値、エクスポートしている名前オブジェクトは名前を認証したメカニズムを特定するOIDを含むヘッダー、および名前自体を含むトレーラから成ります。そこでは、トレーラの構文が独特のメカニズム仕様で定義されます。 輸出名の正確な書式は言語から独立しているGSS-API仕様[GSSAPI]に基づき定義されます。
Note that the results obtained by using gss_compare_name() will in general be different from those obtained by invoking gss_canonicalize_name() and gss_export_name(), and then comparing the exported names. The first series of operation determines whether two (unauthenticated) names identify the same principal; the second whether a particular mechanism would authenticate them as the same principal. These two operations will in general give the same results only for MNs.
一般に、gss_を使用することによって得られた結果が_名前()を比較するというメモはgss_を呼び出すことによって_名()とgss_輸出_名()をcanonicalizeして、次に、エクスポートしている名前を比較しながら得られたものと異なるでしょう。 最初のシリーズの操作は、2つ(非認証した)の名前が同じ主体を特定するかどうか決定します。 特定のメカニズムがそうするだろうかどうかが同じ主体としてそれらを認証する秒。 一般に、これらの2つの操作がMNsのためだけに同じ結果を与えるでしょう。
The gss_name_t datatype should be implemented as a pointer type. To allow the compiler to aid the application programmer by performing type-checking, the use of (void *) is discouraged. A pointer to an implementation-defined type is the preferred choice.
gss_名前_tデータ型式はポインター型として実装されるべきです。 コンパイラがタイプ照合を実行することによってアプリケーション・プログラマーを支援するのを許容するために、(空間*)の使用はお勧めできないです。 実装で定義されたタイプへの指針は都合のよい選択です。
Storage is allocated by routines that return gss_name_t values. A procedure, gss_release_name, is provided to free storage associated with an internal-form name.
gss_名前_t値を返すルーチンでストレージを割り当てます。 内部のフォーム名に関連しているストレージを解放するために、手順(gss_リリース_名)を提供します。
Wray Standards Track [Page 17] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[17ページ]: C-結合2000年1月
3.11. Channel Bindings
3.11. チャンネル結合
GSS-API supports the use of user-specified tags to identify a given context to the peer application. These tags are intended to be used to identify the particular communications channel that carries the context. Channel bindings are communicated to the GSS-API using the following structure:
GSS-APIは、同輩アプリケーションへの与えられた文脈を特定するためにユーザによって指定されたタグの使用をサポートします。 文脈を運ぶ特定のコミュニケーションチャンネルを特定するのにこれらのタグが使用されることを意図します。 チャンネル結合は以下の構造を使用することでGSS-APIに伝えられます:
typedef struct gss_channel_bindings_struct { OM_uint32 initiator_addrtype; gss_buffer_desc initiator_address; OM_uint32 acceptor_addrtype; gss_buffer_desc acceptor_address; gss_buffer_desc application_data; } *gss_channel_bindings_t;
typedef struct gss_チャンネル_結合_struct OM_uint32創始者_addrtype; gss_バッファ_desc創始者_アドレス; OM_uint32アクセプタ_addrtype; gss_バッファ_descアクセプタ_アドレス; gss_バッファ_descアプリケーション_データ;*gss_チャンネル_結合_t。
The initiator_addrtype and acceptor_addrtype fields denote the type of addresses contained in the initiator_address and acceptor_address buffers. The address type should be one of the following:
創始者_addrtypeとアクセプタ_addrtype分野は創始者_アドレスとアクセプタ_アドレス・バッファに含まれたアドレスのタイプを指示します。 アドレスタイプは以下のひとりであるべきです:
GSS_C_AF_UNSPEC Unspecified address type GSS_C_AF_LOCAL Host-local address type GSS_C_AF_INET Internet address type (e.g. IP) GSS_C_AF_IMPLINK ARPAnet IMP address type GSS_C_AF_PUP pup protocols (eg BSP) address type GSS_C_AF_CHAOS MIT CHAOS protocol address type GSS_C_AF_NS XEROX NS address type GSS_C_AF_NBS nbs address type GSS_C_AF_ECMA ECMA address type GSS_C_AF_DATAKIT datakit protocols address type GSS_C_AF_CCITT CCITT protocols GSS_C_AF_SNA IBM SNA address type GSS_C_AF_DECnet DECnet address type GSS_C_AF_DLI Direct data link interface address type GSS_C_AF_LAT LAT address type GSS_C_AF_HYLINK NSC Hyperchannel address type GSS_C_AF_APPLETALK AppleTalk address type GSS_C_AF_BSC BISYNC 2780/3780 address type GSS_C_AF_DSS Distributed system services address type GSS_C_AF_OSI OSI TP4 address type GSS_C_AF_X25 X.25 GSS_C_AF_NULLADDR No address specified
GSS_C_AF_UNSPEC Unspecified address type GSS_C_AF_LOCAL Host-local address type GSS_C_AF_INET Internet address type (e.g. IP) GSS_C_AF_IMPLINK ARPAnet IMP address type GSS_C_AF_PUP pup protocols (eg BSP) address type GSS_C_AF_CHAOS MIT CHAOS protocol address type GSS_C_AF_NS XEROX NS address type GSS_C_AF_NBS nbs address type GSS_C_AF_ECMA ECMA address type GSS_C_AF_DATAKIT datakit protocols address type GSS_C_AF_CCITT CCITT protocols GSS_C_AF_SNA IBM SNA address type GSS_C_AF_DECnet DECnet address type GSS_C_AF_DLI Direct data link interface address type GSS_C_AF_LAT LAT address type GSS_C_AF_HYLINK NSC Hyperchannel address type GSS_C_AF_APPLETALK AppleTalk address type GSS_C_AF_BSC BISYNC 2780/3780 address type GSS_C_AF_DSS Distributed system services address type GSS_C_AF_OSI OSI TP4 address type GSS_C_AF_X25 X.25 GSS_C_AF_NULLADDR No address specified
Note that these symbols name address families rather than specific addressing formats. For address families that contain several alternative address forms, the initiator_address and acceptor_address fields must contain sufficient information to determine which address
Note that these symbols name address families rather than specific addressing formats. For address families that contain several alternative address forms, the initiator_address and acceptor_address fields must contain sufficient information to determine which address
Wray Standards Track [Page 18] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 18] RFC 2744 GSS-API V2: C-bindings January 2000
form is used. When not otherwise specified, addresses should be specified in network byte-order (that is, native byte-ordering for the address family).
form is used. When not otherwise specified, addresses should be specified in network byte-order (that is, native byte-ordering for the address family).
Conceptually, the GSS-API concatenates the initiator_addrtype, initiator_address, acceptor_addrtype, acceptor_address and application_data to form an octet string. The mechanism calculates a MIC over this octet string, and binds the MIC to the context establishment token emitted by gss_init_sec_context. The same bindings are presented by the context acceptor to gss_accept_sec_context, and a MIC is calculated in the same way. The calculated MIC is compared with that found in the token, and if the MICs differ, gss_accept_sec_context will return a GSS_S_BAD_BINDINGS error, and the context will not be established. Some mechanisms may include the actual channel binding data in the token (rather than just a MIC); applications should therefore not use confidential data as channel-binding components.
Conceptually, the GSS-API concatenates the initiator_addrtype, initiator_address, acceptor_addrtype, acceptor_address and application_data to form an octet string. The mechanism calculates a MIC over this octet string, and binds the MIC to the context establishment token emitted by gss_init_sec_context. The same bindings are presented by the context acceptor to gss_accept_sec_context, and a MIC is calculated in the same way. The calculated MIC is compared with that found in the token, and if the MICs differ, gss_accept_sec_context will return a GSS_S_BAD_BINDINGS error, and the context will not be established. Some mechanisms may include the actual channel binding data in the token (rather than just a MIC); applications should therefore not use confidential data as channel-binding components.
Individual mechanisms may impose additional constraints on addresses and address types that may appear in channel bindings. For example, a mechanism may verify that the initiator_address field of the channel bindings presented to gss_init_sec_context contains the correct network address of the host system. Portable applications should therefore ensure that they either provide correct information for the address fields, or omit addressing information, specifying GSS_C_AF_NULLADDR as the address-types.
Individual mechanisms may impose additional constraints on addresses and address types that may appear in channel bindings. For example, a mechanism may verify that the initiator_address field of the channel bindings presented to gss_init_sec_context contains the correct network address of the host system. Portable applications should therefore ensure that they either provide correct information for the address fields, or omit addressing information, specifying GSS_C_AF_NULLADDR as the address-types.
3.12. Optional parameters
3.12. Optional parameters
Various parameters are described as optional. This means that they follow a convention whereby a default value may be requested. The following conventions are used for omitted parameters. These conventions apply only to those parameters that are explicitly documented as optional.
Various parameters are described as optional. This means that they follow a convention whereby a default value may be requested. The following conventions are used for omitted parameters. These conventions apply only to those parameters that are explicitly documented as optional.
3.12.1. gss_buffer_t types
3.12.1. gss_buffer_t types
Specify GSS_C_NO_BUFFER as a value. For an input parameter this signifies that default behavior is requested, while for an output parameter it indicates that the information that would be returned via the parameter is not required by the application.
Specify GSS_C_NO_BUFFER as a value. For an input parameter this signifies that default behavior is requested, while for an output parameter it indicates that the information that would be returned via the parameter is not required by the application.
3.12.2. Integer types (input)
3.12.2. Integer types (input)
Individual parameter documentation lists values to be used to indicate default actions.
Individual parameter documentation lists values to be used to indicate default actions.
Wray Standards Track [Page 19] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 19] RFC 2744 GSS-API V2: C-bindings January 2000
3.12.3. Integer types (output)
3.12.3. Integer types (output)
Specify NULL as the value for the pointer.
Specify NULL as the value for the pointer.
3.12.4. Pointer types
3.12.4. Pointer types
Specify NULL as the value.
Specify NULL as the value.
3.12.5. Object IDs
3.12.5. Object IDs
Specify GSS_C_NO_OID as the value.
Specify GSS_C_NO_OID as the value.
3.12.6. Object ID Sets
3.12.6. Object ID Sets
Specify GSS_C_NO_OID_SET as the value.
Specify GSS_C_NO_OID_SET as the value.
3.12.7. Channel Bindings
3.12.7. Channel Bindings
Specify GSS_C_NO_CHANNEL_BINDINGS to indicate that channel bindings are not to be used.
Specify GSS_C_NO_CHANNEL_BINDINGS to indicate that channel bindings are not to be used.
4. Additional Controls
4. Additional Controls
This section discusses the optional services that a context initiator may request of the GSS-API at context establishment. Each of these services is requested by setting a flag in the req_flags input parameter to gss_init_sec_context.
This section discusses the optional services that a context initiator may request of the GSS-API at context establishment. Each of these services is requested by setting a flag in the req_flags input parameter to gss_init_sec_context.
The optional services currently defined are:
The optional services currently defined are:
Delegation - The (usually temporary) transfer of rights from initiator to acceptor, enabling the acceptor to authenticate itself as an agent of the initiator.
Delegation - The (usually temporary) transfer of rights from initiator to acceptor, enabling the acceptor to authenticate itself as an agent of the initiator.
Mutual Authentication - In addition to the initiator authenticating its identity to the context acceptor, the context acceptor should also authenticate itself to the initiator.
Mutual Authentication - In addition to the initiator authenticating its identity to the context acceptor, the context acceptor should also authenticate itself to the initiator.
Replay detection - In addition to providing message integrity services, gss_get_mic and gss_wrap should include message numbering information to enable gss_verify_mic and gss_unwrap to detect if a message has been duplicated.
Replay detection - In addition to providing message integrity services, gss_get_mic and gss_wrap should include message numbering information to enable gss_verify_mic and gss_unwrap to detect if a message has been duplicated.
Out-of-sequence detection - In addition to providing message integrity services, gss_get_mic and gss_wrap should include message sequencing information to enable gss_verify_mic and gss_unwrap to detect if a message has been received out of sequence.
Out-of-sequence detection - In addition to providing message integrity services, gss_get_mic and gss_wrap should include message sequencing information to enable gss_verify_mic and gss_unwrap to detect if a message has been received out of sequence.
Wray Standards Track [Page 20] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 20] RFC 2744 GSS-API V2: C-bindings January 2000
Anonymous authentication - The establishment of the security context should not reveal the initiator's identity to the context acceptor.
Anonymous authentication - The establishment of the security context should not reveal the initiator's identity to the context acceptor.
Any currently undefined bits within such flag arguments should be ignored by GSS-API implementations when presented by an application, and should be set to zero when returned to the application by the GSS-API implementation.
Any currently undefined bits within such flag arguments should be ignored by GSS-API implementations when presented by an application, and should be set to zero when returned to the application by the GSS-API implementation.
Some mechanisms may not support all optional services, and some mechanisms may only support some services in conjunction with others. Both gss_init_sec_context and gss_accept_sec_context inform the applications which services will be available from the context when the establishment phase is complete, via the ret_flags output parameter. In general, if the security mechanism is capable of providing a requested service, it should do so, even if additional services must be enabled in order to provide the requested service. If the mechanism is incapable of providing a requested service, it should proceed without the service, leaving the application to abort the context establishment process if it considers the requested service to be mandatory.
Some mechanisms may not support all optional services, and some mechanisms may only support some services in conjunction with others. Both gss_init_sec_context and gss_accept_sec_context inform the applications which services will be available from the context when the establishment phase is complete, via the ret_flags output parameter. In general, if the security mechanism is capable of providing a requested service, it should do so, even if additional services must be enabled in order to provide the requested service. If the mechanism is incapable of providing a requested service, it should proceed without the service, leaving the application to abort the context establishment process if it considers the requested service to be mandatory.
Some mechanisms may specify that support for some services is optional, and that implementors of the mechanism need not provide it. This is most commonly true of the confidentiality service, often because of legal restrictions on the use of data-encryption, but may apply to any of the services. Such mechanisms are required to send at least one token from acceptor to initiator during context establishment when the initiator indicates a desire to use such a service, so that the initiating GSS-API can correctly indicate whether the service is supported by the acceptor's GSS-API.
Some mechanisms may specify that support for some services is optional, and that implementors of the mechanism need not provide it. This is most commonly true of the confidentiality service, often because of legal restrictions on the use of data-encryption, but may apply to any of the services. Such mechanisms are required to send at least one token from acceptor to initiator during context establishment when the initiator indicates a desire to use such a service, so that the initiating GSS-API can correctly indicate whether the service is supported by the acceptor's GSS-API.
4.1. Delegation
4.1. Delegation
The GSS-API allows delegation to be controlled by the initiating application via a boolean parameter to gss_init_sec_context(), the routine that establishes a security context. Some mechanisms do not support delegation, and for such mechanisms attempts by an application to enable delegation are ignored.
The GSS-API allows delegation to be controlled by the initiating application via a boolean parameter to gss_init_sec_context(), the routine that establishes a security context. Some mechanisms do not support delegation, and for such mechanisms attempts by an application to enable delegation are ignored.
The acceptor of a security context for which the initiator enabled delegation will receive (via the delegated_cred_handle parameter of gss_accept_sec_context) a credential handle that contains the delegated identity, and this credential handle may be used to initiate subsequent GSS-API security contexts as an agent or delegate of the initiator. If the original initiator's identity is "A" and the delegate's identity is "B", then, depending on the underlying mechanism, the identity embodied by the delegated credential may be
The acceptor of a security context for which the initiator enabled delegation will receive (via the delegated_cred_handle parameter of gss_accept_sec_context) a credential handle that contains the delegated identity, and this credential handle may be used to initiate subsequent GSS-API security contexts as an agent or delegate of the initiator. If the original initiator's identity is "A" and the delegate's identity is "B", then, depending on the underlying mechanism, the identity embodied by the delegated credential may be
Wray Standards Track [Page 21] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 21] RFC 2744 GSS-API V2: C-bindings January 2000
either "A" or "B acting for A".
either "A" or "B acting for A".
For many mechanisms that support delegation, a simple boolean does not provide enough control. Examples of additional aspects of delegation control that a mechanism might provide to an application are duration of delegation, network addresses from which delegation is valid, and constraints on the tasks that may be performed by a delegate. Such controls are presently outside the scope of the GSS- API. GSS-API implementations supporting mechanisms offering additional controls should provide extension routines that allow these controls to be exercised (perhaps by modifying the initiator's GSS-API credential prior to its use in establishing a context). However, the simple delegation control provided by GSS-API should always be able to over-ride other mechanism-specific delegation controls - If the application instructs gss_init_sec_context() that delegation is not desired, then the implementation must not permit delegation to occur. This is an exception to the general rule that a mechanism may enable services even if they are not requested - delegation may only be provided at the explicit request of the application.
For many mechanisms that support delegation, a simple boolean does not provide enough control. Examples of additional aspects of delegation control that a mechanism might provide to an application are duration of delegation, network addresses from which delegation is valid, and constraints on the tasks that may be performed by a delegate. Such controls are presently outside the scope of the GSS- API. GSS-API implementations supporting mechanisms offering additional controls should provide extension routines that allow these controls to be exercised (perhaps by modifying the initiator's GSS-API credential prior to its use in establishing a context). However, the simple delegation control provided by GSS-API should always be able to over-ride other mechanism-specific delegation controls - If the application instructs gss_init_sec_context() that delegation is not desired, then the implementation must not permit delegation to occur. This is an exception to the general rule that a mechanism may enable services even if they are not requested - delegation may only be provided at the explicit request of the application.
4.2. Mutual authentication
4.2. Mutual authentication
Usually, a context acceptor will require that a context initiator authenticate itself so that the acceptor may make an access-control decision prior to performing a service for the initiator. In some cases, the initiator may also request that the acceptor authenticate itself. GSS-API allows the initiating application to request this mutual authentication service by setting a flag when calling gss_init_sec_context.
Usually, a context acceptor will require that a context initiator authenticate itself so that the acceptor may make an access-control decision prior to performing a service for the initiator. In some cases, the initiator may also request that the acceptor authenticate itself. GSS-API allows the initiating application to request this mutual authentication service by setting a flag when calling gss_init_sec_context.
The initiating application is informed as to whether or not the context acceptor has authenticated itself. Note that some mechanisms may not support mutual authentication, and other mechanisms may always perform mutual authentication, whether or not the initiating application requests it. In particular, mutual authentication my be required by some mechanisms in order to support replay or out-of- sequence message detection, and for such mechanisms a request for either of these services will automatically enable mutual authentication.
The initiating application is informed as to whether or not the context acceptor has authenticated itself. Note that some mechanisms may not support mutual authentication, and other mechanisms may always perform mutual authentication, whether or not the initiating application requests it. In particular, mutual authentication my be required by some mechanisms in order to support replay or out-of- sequence message detection, and for such mechanisms a request for either of these services will automatically enable mutual authentication.
Wray Standards Track [Page 22] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 22] RFC 2744 GSS-API V2: C-bindings January 2000
4.3. Replay and out-of-sequence detection
4.3. Replay and out-of-sequence detection
The GSS-API may provide detection of mis-ordered message once a security context has been established. Protection may be applied to messages by either application, by calling either gss_get_mic or gss_wrap, and verified by the peer application by calling gss_verify_mic or gss_unwrap.
The GSS-API may provide detection of mis-ordered message once a security context has been established. Protection may be applied to messages by either application, by calling either gss_get_mic or gss_wrap, and verified by the peer application by calling gss_verify_mic or gss_unwrap.
gss_get_mic calculates a cryptographic MIC over an application message, and returns that MIC in a token. The application should pass both the token and the message to the peer application, which presents them to gss_verify_mic.
gss_get_mic calculates a cryptographic MIC over an application message, and returns that MIC in a token. The application should pass both the token and the message to the peer application, which presents them to gss_verify_mic.
gss_wrap calculates a cryptographic MIC of an application message, and places both the MIC and the message inside a single token. The Application should pass the token to the peer application, which presents it to gss_unwrap to extract the message and verify the MIC.
gss_wrap calculates a cryptographic MIC of an application message, and places both the MIC and the message inside a single token. The Application should pass the token to the peer application, which presents it to gss_unwrap to extract the message and verify the MIC.
Either pair of routines may be capable of detecting out-of-sequence message delivery, or duplication of messages. Details of such mis- ordered messages are indicated through supplementary status bits in the major status code returned by gss_verify_mic or gss_unwrap. The relevant supplementary bits are:
Either pair of routines may be capable of detecting out-of-sequence message delivery, or duplication of messages. Details of such mis- ordered messages are indicated through supplementary status bits in the major status code returned by gss_verify_mic or gss_unwrap. The relevant supplementary bits are:
GSS_S_DUPLICATE_TOKEN - The token is a duplicate of one that has already been received and processed. Only contexts that claim to provide replay detection may set this bit. GSS_S_OLD_TOKEN - The token is too old to determine whether or not it is a duplicate. Contexts supporting out-of-sequence detection but not replay detection should always set this bit if GSS_S_UNSEQ_TOKEN is set; contexts that support replay detection should only set this bit if the token is so old that it cannot be checked for duplication. GSS_S_UNSEQ_TOKEN - A later token has already been processed. GSS_S_GAP_TOKEN - An earlier token has not yet been received.
GSS_S_DUPLICATE_TOKEN - The token is a duplicate of one that has already been received and processed. Only contexts that claim to provide replay detection may set this bit. GSS_S_OLD_TOKEN - The token is too old to determine whether or not it is a duplicate. Contexts supporting out-of-sequence detection but not replay detection should always set this bit if GSS_S_UNSEQ_TOKEN is set; contexts that support replay detection should only set this bit if the token is so old that it cannot be checked for duplication. GSS_S_UNSEQ_TOKEN - A later token has already been processed. GSS_S_GAP_TOKEN - An earlier token has not yet been received.
A mechanism need not maintain a list of all tokens that have been processed in order to support these status codes. A typical mechanism might retain information about only the most recent "N" tokens processed, allowing it to distinguish duplicates and missing tokens within the most recent "N" messages; the receipt of a token older than the most recent "N" would result in a GSS_S_OLD_TOKEN status.
A mechanism need not maintain a list of all tokens that have been processed in order to support these status codes. A typical mechanism might retain information about only the most recent "N" tokens processed, allowing it to distinguish duplicates and missing tokens within the most recent "N" messages; the receipt of a token older than the most recent "N" would result in a GSS_S_OLD_TOKEN status.
Wray Standards Track [Page 23] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 23] RFC 2744 GSS-API V2: C-bindings January 2000
4.4. Anonymous Authentication
4.4. Anonymous Authentication
In certain situations, an application may wish to initiate the authentication process to authenticate a peer, without revealing its own identity. As an example, consider an application providing access to a database containing medical information, and offering unrestricted access to the service. A client of such a service might wish to authenticate the service (in order to establish trust in any information retrieved from it), but might not wish the service to be able to obtain the client's identity (perhaps due to privacy concerns about the specific inquiries, or perhaps simply to avoid being placed on mailing-lists).
In certain situations, an application may wish to initiate the authentication process to authenticate a peer, without revealing its own identity. As an example, consider an application providing access to a database containing medical information, and offering unrestricted access to the service. A client of such a service might wish to authenticate the service (in order to establish trust in any information retrieved from it), but might not wish the service to be able to obtain the client's identity (perhaps due to privacy concerns about the specific inquiries, or perhaps simply to avoid being placed on mailing-lists).
In normal use of the GSS-API, the initiator's identity is made available to the acceptor as a result of the context establishment process. However, context initiators may request that their identity not be revealed to the context acceptor. Many mechanisms do not support anonymous authentication, and for such mechanisms the request will not be honored. An authentication token will be still be generated, but the application is always informed if a requested service is unavailable, and has the option to abort context establishment if anonymity is valued above the other security services that would require a context to be established.
GSS-APIを通常の使用で、創始者のアイデンティティを文脈設立プロセスの結果、アクセプタに利用可能にします。 しかしながら、文脈創始者は、彼らのアイデンティティが文脈アクセプタに明らかにされないよう要求するかもしれません。 多くのメカニズムは匿名の認証をサポートしません、そして、要求はそのようなメカニズムにおいて、光栄に思うようにならないでしょう。 認証トークンは発生していて、アプリケーションだけが要求されたサービスが入手できないならいつも知識があって、匿名が文脈が確立されるのを必要とする他のセキュリティー・サービスを超えて評価されるなら文脈設立を中止するオプションを持っているというまだことであるためにことになるでしょう。
In addition to informing the application that a context is established anonymously (via the ret_flags outputs from gss_init_sec_context and gss_accept_sec_context), the optional src_name output from gss_accept_sec_context and gss_inquire_context will, for such contexts, return a reserved internal-form name, defined by the implementation.
を通して文脈が匿名で確立されることをアプリケーションに知らせることに加えた(浸水、旗が_文脈とgss_が_秒_文脈を受け入れるgss_イニット_秒から出力する_)、gss_からの出力という任意のsrc_名前は_秒_文脈を受け入れます、そして、gss_は_文脈意志について問い合わせます、そのような文脈(実装によって予約された内部のフォーム名であって、定義されたリターン)のために
When presented to gss_display_name, this reserved internal-form name will result in a printable name that is syntactically distinguishable from any valid principal name supported by the implementation, associated with a name-type object identifier with the value GSS_C_NT_ANONYMOUS, whose value us given in Appendix A. The printable form of an anonymous name should be chosen such that it implies anonymity, since this name may appear in, for example, audit logs. For example, the string "<anonymous>" might be a good choice, if no valid printable names supported by the implementation can begin with "<" and end with ">".
_ディスプレイ_名、この予約された内部のフォーム名がそうするgssに提示されると、匿名を含意するように匿名の名前の印刷可能なフォームが選ばれるべきであるAppendix A.で考えて、どんな妥当な主要な名前からもシンタクス上区別可能な印刷可能な名前の結果は名前タイプオブジェクト識別子に関連している値のGSS_C_NT_更生会と共に実装による値に私たちをサポートしました、この名前が例えば、監査ログに現れるかもしれないので。 例えば、ストリング「<の匿名の>」は良い選択であるかもしれません、実装によってサポートされたどんな妥当な印刷可能な名前も"<"で始まって、">"で終わることができないなら。
4.5. Confidentiality
4.5. 秘密性
If a context supports the confidentiality service, gss_wrap may be used to encrypt application messages. Messages are selectively encrypted, under the control of the conf_req_flag input parameter to gss_wrap.
文脈が、秘密性がサービスであるとサポートするなら、gss_包装は、アプリケーションメッセージを暗号化するのに使用されるかもしれません。 メッセージはconf_req_旗の入力パラメタのコントロールの下で選択的にgss_包装に暗号化されます。
Wray Standards Track [Page 24] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[24ページ]: C-結合2000年1月
4.6. Inter-process context transfer
4.6. 相互プロセス文脈転送
GSS-API V2 provides routines (gss_export_sec_context and gss_import_sec_context) which allow a security context to be transferred between processes on a single machine. The most common use for such a feature is a client-server design where the server is implemented as a single process that accepts incoming security contexts, which then launches child processes to deal with the data on these contexts. In such a design, the child processes must have access to the security context data structure created within the parent by its call to gss_accept_sec_context so that they can use per-message protection services and delete the security context when the communication session ends.
GSS-API V2はセキュリティ文脈が単一マシンの上にプロセスの間に移されるのを許容するルーチン(gss_輸出_秒_文脈とgss_輸入_秒_文脈)を提供します。 そのような特徴の最も一般の使用はこれらの文脈のサーバが入って来るセキュリティ文脈を受け入れて、次にデータに対処するために子プロセスを始める単一のプロセスとして実装されるクライアント/サーバデザインです。 そのようなデザインでは、子プロセスは_が_秒_文脈を受け入れるというgssへの要求でコミュニケーションセッションが終わると、1メッセージあたりの保護サービスを利用して、セキュリティ文脈を削除できるように親の中で作成されたセキュリティ文脈データ構造に近づく手段を持たなければなりません。
Since the security context data structure is expected to contain sequencing information, it is impractical in general to share a context between processes. Thus GSS-API provides a call (gss_export_sec_context) that the process which currently owns the context can call to declare that it has no intention to use the context subsequently, and to create an inter-process token containing information needed by the adopting process to successfully import the context. After successful completion of gss_export_sec_context, the original security context is made inaccessible to the calling process by GSS-API, and any context handles referring to this context are no longer valid. The originating process transfers the inter-process token to the adopting process, which passes it to gss_import_sec_context, and a fresh gss_ctx_id_t is created such that it is functionally identical to the original context.
セキュリティ文脈データ構造が配列情報を含むと予想されて、一般に、プロセスの間の文脈を共有するのは非実用的です。 したがって、GSS-APIは、それには次に、文脈を使用して、首尾よく文脈をインポートするために採用プロセスによって必要とされた情報を含む相互プロセストークンを作成するという意志が全くないと宣言するために、現在文脈を所有しているプロセスが呼ぶことができるという要求(gss_輸出_秒_文脈)を提供します。 gss_輸出_秒_文脈の無事終了の後に、オリジナルのセキュリティ文脈をGSS-APIで呼び出しプロセスに近づきがたくします、そして、この文脈を示すどんな文脈ハンドルももう有効ではありません。 起因するプロセスは相互プロセストークンを採用プロセスに移します、そして、新鮮なgss_ctx_イド_tは、それがオリジナルの文脈と機能上同じであるように、作成されます。(プロセスはgss_輸入_秒_文脈にそれを通過します)。
The inter-process token may contain sensitive data from the original security context (including cryptographic keys). Applications using inter-process tokens to transfer security contexts must take appropriate steps to protect these tokens in transit.
相互プロセストークンはオリジナルのセキュリティ文脈からの極秘データを含むかもしれません(暗号化キーを含んでいて)。 セキュリティ文脈を移すのに相互プロセストークンを使用するアプリケーションは、トランジットにおけるこれらのトークンを保護するために適切な手段を講じなければなりません。
Implementations are not required to support the inter-process transfer of security contexts. The ability to transfer a security context is indicated when the context is created, by gss_init_sec_context or gss_accept_sec_context setting the GSS_C_TRANS_FLAG bit in their ret_flags parameter.
実装は、相互プロセスがセキュリティ文脈の転送であるとサポートするのに必要ではありません。 文脈がgss_イニット_秒_文脈によって作成されるか、またはgss_が_GSS_C_TRANS_FLAGが中で噛み付いた秒_文脈設定を受け入れるとき、セキュリティ文脈を移す能力が示される、彼ら、_フラッグ変数を浸水させてください。
4.7. The use of incomplete contexts
4.7. 不完全な関係の使用
Some mechanisms may allow the per-message services to be used before the context establishment process is complete. For example, a mechanism may include sufficient information in its initial context- level token for the context acceptor to immediately decode messages protected with gss_wrap or gss_get_mic. For such a mechanism, the initiating application need not wait until subsequent context-level
文脈設立プロセスが完全になる前にいくつかのメカニズムが、1メッセージあたりのサービスが利用されるのを許容するかもしれません。 例えば、文脈アクセプタがすぐにgss_包装で保護されたメッセージを解読するように、メカニズムが文脈の初期のレベルトークンに十分な情報を含むかもしれませんか、またはgss_は_micを手に入れます。 そのようなメカニズムのために、開始アプリケーションはその後の文脈レベルまで待つ必要はありません。
Wray Standards Track [Page 25] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[25ページ]: C-結合2000年1月
tokens have been sent and received before invoking the per-message protection services.
1メッセージあたりの保護サービスを呼び出す前に、トークンを送って、受け取りました。
The ability of a context to provide per-message services in advance of complete context establishment is indicated by the setting of the GSS_C_PROT_READY_FLAG bit in the ret_flags parameter from gss_init_sec_context and gss_accept_sec_context. Applications wishing to use per-message protection services on partially-established contexts should check this flag before attempting to invoke gss_wrap or gss_get_mic.
文脈が完全な文脈設立の前に1メッセージあたりのサービスを提供する能力がREADY_FLAGが噛み付いた_GSS_C PROT_の設定によって示される、_gss_イニット_秒_文脈からのフラッグ変数を浸水させてください。そうすれば、gss_は_秒_文脈を受け入れます。 部分的に確立した関係における保護サービスがgss_包装かgss_を呼び出すのを試みる前にこの旗をチェックするべきであるというメッセージを使用したがっているアプリケーションが_micを手に入れます。
5. GSS-API Routine Descriptions
5. GSS-APIの通常の記述
In addition to the explicit major status codes documented here, the code GSS_S_FAILURE may be returned by any routine, indicating an implementation-specific or mechanism-specific error condition, further details of which are reported via the minor_status parameter.
ここに記録された明白な主要なステータスコードに加えて、どんなルーチンでもコードGSS_S_FAILUREを返すかもしれません、実装特有の、または、メカニズム特有のエラー条件(それの詳細は小さい方の_ステータスパラメタで報告される)を示して。
5.1. gss_accept_sec_context
5.1. gss_は_秒_文脈を受け入れます。
OM_uint32 gss_accept_sec_context ( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, const gss_cred_id_t acceptor_cred_handle, const gss_buffer_t input_token_buffer, const gss_channel_bindings_t input_chan_bindings, const gss_name_t *src_name, gss_OID *mech_type, gss_buffer_t output_token, OM_uint32 *ret_flags, OM_uint32 *time_rec, gss_cred_id_t *delegated_cred_handle)
OM_uint32 gss_は_秒_文脈を受け入れます。小さい方..状態..イド..文脈..ハンドル..信用..イド..アクセプタ..信用..ハンドル..バッファ..入力..トークン..バッファ..チャンネル..結合..入力..結合..名前..名前..タイプ..バッファ..出力..トークン..浸水..旗..時間..信用..イド..代表として派遣する..信用..ハンドル
Purpose:
目的:
Allows a remotely initiated security context between the application and a remote peer to be established. The routine may return a output_token which should be transferred to the peer application, where the peer application will present it to gss_init_sec_context. If no token need be sent, gss_accept_sec_context will indicate this by setting the length field of the output_token argument to zero. To complete the context establishment, one or more reply tokens may be required from the peer application; if so, gss_accept_sec_context will return a status flag of GSS_S_CONTINUE_NEEDED, in which case it should be called again when the reply token is received from the peer application, passing the token to gss_accept_sec_context via the input_token parameters.
アプリケーションとリモート同輩の間の離れて開始しているセキュリティ文脈が確立されるのを許容します。 ルーチンは同輩アプリケーションに移されるべきである出力_トークンを返すかもしれません。そこでは、同輩アプリケーションがgss_イニット_秒_文脈にそれを示すでしょう。 どんなトークンも送られたgss_である必要はないなら、_文脈がゼロに合わせるために出力_トークン議論の長さの分野を設定することによってこれを示す_秒を受け入れてください。 文脈設立を終了するために、1つ以上の回答トークンが同輩アプリケーションから必要であるかもしれません。 そうだとすれば、_文脈がCONTINUE_が必要としたGSS_S_の状態旗を返す_秒はgss_は受け入れられて、gss_にトークンを通過すると、同輩アプリケーションから回答トークンを受け取るとき、再びどのケースにそれを呼ぶべきであるかで、_秒_文脈は入力_トークンパラメタで受け入れられます。
Wray Standards Track [Page 26] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[26ページ]: C-結合2000年1月
Portable applications should be constructed to use the token length and return status to determine whether a token needs to be sent or waited for. Thus a typical portable caller should always invoke gss_accept_sec_context within a loop:
携帯用のアプリケーションは、トークンが、送るか、または待つ必要であるかどうか決定するためにトークンの長さを使用して、状態を返すために構成されるべきです。 その結果、典型的な携帯用の訪問者はいつもgssを呼び出すべきです。_輪の中で_秒_文脈を受け入れてください:
gss_ctx_id_t context_hdl = GSS_C_NO_CONTEXT;
gss_ctx_イド_t文脈_hdlは_GSS_Cいいえ_CONTEXTと等しいです。
do { receive_token_from_peer(input_token); maj_stat = gss_accept_sec_context(&min_stat, &context_hdl, cred_hdl, input_token, input_bindings, &client_name, &mech_type, output_token, &ret_flags, &time_rec, &deleg_cred); if (GSS_ERROR(maj_stat)) { report_error(maj_stat, min_stat); }; if (output_token->length != 0) { send_token_to_peer(output_token);
受ける..トークン..同輩..入力..トークン..スタット..受け入れる..秒..文脈..分..スタット..文脈..信用..入力..トークン..入力..結合..クライアント..名前..タイプ..出力..トークン..浸水..旗..時間..信用..スタット..レポート..誤り..スタット..分..スタット..出力..トークン..長さ..送る..トークン..同輩..出力..トークン
gss_release_buffer(&min_stat, output_token); }; if (GSS_ERROR(maj_stat)) { if (context_hdl != GSS_C_NO_CONTEXT) gss_delete_sec_context(&min_stat, &context_hdl, GSS_C_NO_BUFFER); break; }; } while (maj_stat & GSS_S_CONTINUE_NEEDED);
gss_リリース_バッファ(分_スタット、出力_トークン)。 }; (GSS_ERROR(maj_スタット))である、_(文脈_hdl!は_GSS_Cいいえ_CONTEXTと等しいです)gssであるなら、_秒_文脈(__分_スタット、および文脈hdl、GSS_Cいいえ_BUFFER)を削除してください。 壊れてください。 }; (_必要であることで、S_が続けているmaj_スタットとGSS_)をゆったり過ごしてください。
Whenever the routine returns a major status that includes the value GSS_S_CONTINUE_NEEDED, the context is not fully established and the following restrictions apply to the output parameters:
ルーチンがCONTINUE_が必要とした値GSS_Sの_を含んでいる主要な状態を返すときはいつも、文脈は完全に確立されるというわけではありません、そして、以下の制限は出力パラメタに適用されます:
The value returned via the time_rec parameter is undefined Unless the accompanying ret_flags parameter contains the bit GSS_C_PROT_READY_FLAG, indicating that per-message services may be applied in advance of a successful completion status, the value returned via the mech_type parameter may be undefined until the routine returns a major status value of GSS_S_COMPLETE.
_recパラメタが付随の未定義のUnlessが_フラッグ変数を浸水させるということである時で返された値は_ビットGSS_C PROT_READY_FLAGを含んでいます、1メッセージあたりのサービスが無事終了状態の前に適用されるかもしれないのを示してルーチンが_GSS_S COMPLETEの主要な状態値を返すまで、mech_型引数で返された値は未定義であるかもしれません。
Wray Standards Track [Page 27] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[27ページ]: C-結合2000年1月
The values of the GSS_C_DELEG_FLAG, GSS_C_MUTUAL_FLAG,GSS_C_REPLAY_FLAG, GSS_C_SEQUENCE_FLAG, GSS_C_CONF_FLAG,GSS_C_INTEG_FLAG and GSS_C_ANON_FLAG bits returned via the ret_flags parameter should contain the values that the implementation expects would be valid if context establishment were to succeed.
を通してGSS_C_DELEG_FLAGの値、_GSS_C MUTUAL_FLAG、_GSS_C REPLAY_FLAG、_GSS_C SEQUENCE_FLAG、_GSS_C CONF_FLAG、GSS_C_INTEG_FLAGとGSS_C_ANON_FLAGビットが戻った、フラッグ変数が引き継ぐために実装が文脈設立があるなら有効であると予想する値を含むべきである_を浸水させてください。
The values of the GSS_C_PROT_READY_FLAG and GSS_C_TRANS_FLAG bits within ret_flags should indicate the actual state at the time gss_accept_sec_context returns, whether or not the context is fully established.
GSS_C_PROT_READY_FLAGとGSS_C_TRANS_FLAGビットの値は中でgss_が_秒_文脈リターンを受け入れるとき旗が実際の状態を示すはずである_を浸水させます、文脈が完全に確立されるか否かに関係なく。
Although this requires that GSS-API implementations set the GSS_C_PROT_READY_FLAG in the final ret_flags returned to a caller (i.e. when accompanied by a GSS_S_COMPLETE status code), applications should not rely on this behavior as the flag was not defined in Version 1 of the GSS-API. Instead, applications should be prepared to use per-message services after a successful context establishment, according to the GSS_C_INTEG_FLAG and GSS_C_CONF_FLAG values.
_これは、GSS-API実行が_GSS_C PROTを設定するのを必要としますが、決勝におけるREADY_FLAGは_訪問者に返された旗を浸水させて(すなわち、GSS_S_COMPLETEステータスコードによって伴われると)、旗がGSS-APIのバージョン1で定義されなかったようにアプリケーションはこの振舞いに依存するべきではありません。 代わりに、アプリケーションはうまくいっている文脈設立の後に1メッセージあたりのサービスを利用するように準備されるべきです、FLAGが評価するGSS__C INTEG_FLAGと_GSS_C CONF_によると。
All other bits within the ret_flags argument should be set to zero. While the routine returns GSS_S_CONTINUE_NEEDED, the values returned via the ret_flags argument indicate the services that the implementation expects to be available from the established context.
他のすべてのビット、中、_合わせてください議論が設定されるべきであるゼロ旗を浸水させてください。 を通してルーチンがCONTINUE_が必要としたGSS_S_を返しますが、値が戻った、確立した関係から利用可能な状態で_議論が実装が予想するサービスを示す旗を浸水させてください。
If the initial call of gss_accept_sec_context() fails, the implementation should not create a context object, and should leave the value of the context_handle parameter set to GSS_C_NO_CONTEXT to indicate this. In the event of a failure on a subsequent call, the implementation is permitted to delete the "half-built" security context (in which case it should set the context_handle parameter to GSS_C_NO_CONTEXT), but the preferred behavior is to leave the security context (and the context_handle parameter) untouched for the application to delete (using gss_delete_sec_context).
gss_の初期の呼び出しであるなら、()が失敗する文脈、実装が文脈オブジェクトを作成するべきでない_秒の_を受け入れてください、そして、_GSS_Cいいえ_CONTEXTにこれを示すように設定された文脈_ハンドルパラメタの値をままにするべきです。 その後の呼び出しでの失敗の場合、実装が「半分組立」のセキュリティ文脈を削除することが許可されますが(その場合、それは_GSS_Cいいえ_CONTEXTに文脈_ハンドルパラメタを設定するべきです)、都合のよい振舞いはセキュリティ文脈(そして、文脈_ハンドルパラメタ)をアプリケーションが削除するように触れない状態でおく(_gssを使用して、_秒_文脈を削除してください)ことです。
During context establishment, the informational status bits GSS_S_OLD_TOKEN and GSS_S_DUPLICATE_TOKEN indicate fatal errors, and GSS-API mechanisms should always return them in association with a routine error of GSS_S_FAILURE. This requirement for pairing did not exist in version 1 of the GSS-API specification, so applications that wish to run over version 1 implementations must special-case these codes.
文脈設立の間、情報のステータスビット_GSS_S OLD_TOKENと_GSS_S DUPLICATE_TOKENは致命的な誤りを示します、そして、GSS-APIメカニズムはいつも_GSS_S FAILUREの通常の誤りと関連してそれらを返すはずです。 組み合わせのためのこの要件がGSS-API仕様のバージョン1に存在しなかったので、バージョン1実装をひきたがっているアプリケーションはこれらのコードを特別番組でケースに入れなければなりません。
Wray Standards Track [Page 28] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[28ページ]: C-結合2000年1月
Parameters:
パラメタ:
context_handle gss_ctx_id_t, read/modify context handle for new context. Supply GSS_C_NO_CONTEXT for first call; use value returned in subsequent calls. Once gss_accept_sec_context() has returned a value via this parameter, resources have been assigned to the corresponding context, and must be freed by the application after use with a call to gss_delete_sec_context().
新しい関係のために文脈ハンドルを文脈_はgss_ctx_イド_tを扱って、読むか、または変更してください。 _GSS_Cいいえ_CONTEXTを準備ラッパに供給してください。 使用価値はその後の呼び出しで戻りました。 gss_がいったん_()がこのパラメタで値を返した秒_文脈を受け入れると、リソースを対応する文脈に割り当てられて、gss_への呼び出しによる使用が_秒_文脈()を削除した後にアプリケーションで解放しなければなりません。
acceptor_cred_handle gss_cred_id_t, read Credential handle claimed by context acceptor. Specify GSS_C_NO_CREDENTIAL to accept the context as a default principal. If GSS_C_NO_CREDENTIAL is specified, but no default acceptor principal is defined, GSS_S_NO_CRED will be returned.
文脈アクセプタによって要求されて、Credentialハンドルが読まれたアクセプタ_信用_ハンドルgss_信用_イド_t。 _GSS_Cいいえ_CREDENTIALを指定して、デフォルト元本として文脈を認めてください。 GSS_C_いいえ_CREDENTIALを指定しますが、デフォルトアクセプタ主体を全く定義しないと、GSS_S_いいえ_CREDを返すでしょう。
input_token_buffer buffer, opaque, read token obtained from remote application.
不明瞭な入力_トークン_バッファバッファはリモートアプリケーションから得られたトークンを読みました。
input_chan_bindings channel bindings, read, optional Application- specified bindings. Allows application to securely bind channel identification information to the security context. If channel bindings are not used, specify GSS_C_NO_CHANNEL_BINDINGS.
入力_chan_結合は結合を向けて、読まれて、任意のApplicationは結合を指定しました。 アプリケーションがしっかりとセキュリティ文脈にチャネル識別情報を縛るのを許容します。 チャンネル結合が使用されていないなら、_GSS_Cいいえ_CHANNEL_BINDINGSを指定してください。
src_name gss_name_t, modify, optional Authenticated name of context initiator. After use, this name should be deallocated by passing it to gss_release_name(). If not required, specify NULL.
src_名前gss_名前_t、変更、文脈創始者の任意のAuthenticated名。 使用の後に、この名前は、gss_リリース_名()にそれを通過することによって、「反-割り当て」られるべきです。 必要でないなら、NULLを指定してください。
mech_type Object ID, modify, optional Security mechanism used. The returned OID value will be a pointer into static storage, and should be treated as read-only by the caller (in particular, it does not need to be freed). If not required, specify NULL.
mech_タイプObject ID、変更、使用される任意のSecurityメカニズム。 返されたOID値は、スタティックストレージへの指針であり、訪問者によって書き込み禁止として扱われるべきです(特に、それは解放される必要はありません)。 必要でないなら、NULLを指定してください。
output_token buffer, opaque, modify Token to be passed to peer application. If the length field of the returned token buffer is 0, then no token need be passed to the peer application. If a non- zero length field is returned, the associated storage must be freed after use by the application with a call to gss_release_buffer().
出力_トークンバッファ、不透明なものは、同輩アプリケーションに通過されるようにTokenを変更します。 返されたトークンバッファの長さの分野が0であるなら、トークンは全く同輩アプリケーションに通過される必要はありません。 非ゼロ・レングスの野原を返すなら、使用の後に呼び出しでアプリケーションでgss_リリース_バッファ()に関連ストレージを解放しなければなりません。
Wray Standards Track [Page 29] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[29ページ]: C-結合2000年1月
ret_flags bit-mask, modify, optional Contains various independent flags, each of which indicates that the context supports a specific service option. If not needed, specify NULL. Symbolic names are provided for each flag, and the symbolic names corresponding to the required flags should be logically-ANDed with the ret_flags value to test whether a given option is supported by the context. The flags are: GSS_C_DELEG_FLAG True - Delegated credentials are available via the delegated_cred_handle parameter False - No credentials were delegated GSS_C_MUTUAL_FLAG True - Remote peer asked for mutual authentication False - Remote peer did not ask for mutual authentication GSS_C_REPLAY_FLAG True - replay of protected messages will be detected False - replayed messages will not be detected GSS_C_SEQUENCE_FLAG True - out-of-sequence protected messages will be detected False - out-of-sequence messages will not be detected GSS_C_CONF_FLAG True - Confidentiality service may be invoked by calling the gss_wrap routine False - No confidentiality service (via gss_wrap) available. gss_wrap will provide message encapsulation, data-origin authentication and integrity services only. GSS_C_INTEG_FLAG True - Integrity service may be invoked by calling either gss_get_mic or gss_wrap routines. False - Per-message integrity service unavailable. GSS_C_ANON_FLAG True - The initiator does not wish to be authenticated; the src_name parameter (if requested) contains
_旗のビットマスクを浸水させてください、変更、任意のContains様々な独立している旗。それのそれぞれが、文脈が特定のサービスオプションをサポートするのを示します。 必要でないなら、NULLを指定してください。 各旗に英字名を提供して、必要な旗に対応する英字名が提供するべきである、論理的である、-、ANDed、旗が与えられたオプションが文脈で後押しされているか否かに関係なく、テストするために評価する_を浸水させてください。 旗は以下の通りです。 代表として派遣された信任状は代表として派遣された_信用_ハンドルパラメタFalseを通して利用可能です--どんな信任状も代表として派遣された_GSS_C MUTUAL_FLAG Trueではありませんでした--リモート同輩は互いの認証Falseを求めました--リモート同輩が_互いの認証GSS_C REPLAY_FLAG Trueを求めなかったというDELEG_FLAG Trueが再演する保護されたメッセージのGSS_C_は検出されるでしょう; 再演されたメッセージは虚偽、検出された_GSS_C FLAG TrueにSEQUENCE_ならないでしょう--順序が狂って保護されたメッセージは検出されたFalseになるでしょう--順序が狂ってメッセージは検出された_GSS_C FLAG TrueにCONF_ならないでしょう--gss_包装を通常のFalseと呼ぶことによって、秘密性サービスは呼び出されるかもしれません--利用可能な秘密性サービスがありません(gss_包装を通した); gss_包装はメッセージカプセル化、データ起源認証、および保全サービスだけを提供するでしょう。 GSS_C_INTEG_FLAG True--_が_micを手に入れるgssかgss_包装ルーチンのどちらかと呼ぶことによって、保全サービスは呼び出されるかもしれません。 偽--入手できない1メッセージの保全あたりのサービス。 GSS_C_ANON_FLAG True--創始者を認証されたくはありません。 _名前パラメタ(要求されるなら)が含むsrc
Wray Standards Track [Page 30] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[30ページ]: C-結合2000年1月
an anonymous internal name. False - The initiator has been authenticated normally. GSS_C_PROT_READY_FLAG True - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available if the accompanying major status return value is either GSS_S_COMPLETE or GSS_S_CONTINUE_NEEDED. False - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available only if the accompanying major status return value is GSS_S_COMPLETE. GSS_C_TRANS_FLAG True - The resultant security context may be transferred to other processes via a call to gss_export_sec_context(). False - The security context is not transferable. All other bits should be set to zero.
匿名の内部名。 通常、虚偽で、創始者は認証されました。 GSS_C_PROT_READY_FLAG True--保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は付随の主要な状態リターン価値がGSS__S COMPLETEか_GSS_S CONTINUE_が必要としたどちらかなら利用可能です。 保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は付随の主要な状態リターン価値がGSS_S_COMPLETEである場合にだけ虚偽で、利用可能です。 GSS_C_TRANS_FLAG True--gss_輸出_秒_文脈()への呼び出しで結果のセキュリティ関係を他の過程に移すかもしれません。 セキュリティ文脈は虚偽で、移転可能ではありません。 他のすべてのビットがゼロに設定されるべきです。
time_rec Integer, modify, optional number of seconds for which the context will remain valid. Specify NULL if not required.
時間_rec Integer、変更、文脈が有効なままで残っている任意の秒数。 必要でないなら、NULLを指定してください。
delegated_cred_handle gss_cred_id_t, modify, optional credential handle for credentials received from context initiator. Only valid if deleg_flag in ret_flags is true, in which case an explicit credential handle (i.e. not GSS_C_NO_CREDENTIAL) will be returned; if deleg_flag is false, gss_accept_context() will set this parameter to GSS_C_NO_CREDENTIAL. If a credential handle is returned, the associated resources must be released by the application after use with a call to gss_release_cred(). Specify NULL if not required.
_信用_ハンドルgss_信用_イド_tを代表として派遣した、変更、信任状のための任意の信任しているハンドルは文脈創始者から受信されました。 本当であり、明白な信任状が扱うケース(_すなわち、GSS_Cでないいいえ_CREDENTIAL)がどれになるかで返して、中の有効な、しかし、delegな_旗だけが_旗を浸水させます。 _deleg_旗が偽、gss_が受け入れるということであるなら、文脈()は_GSS_Cいいえ_CREDENTIALにこのパラメタを設定するでしょう。 信任しているハンドルを返すなら、使用の後に呼び出しでアプリケーションでgss_リリース_信用()に関連リソースを発表しなければなりません。 必要でないなら、NULLを指定してください。
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
GSS_S_CONTINUE_NEEDED Indicates that a token from the peer application is required to complete the context, and that gss_accept_sec_context must be called again with that token.
同輩アプリケーションからの象徴がIndicatesですが、CONTINUE_が必要としたGSS_S_が文脈を完成するのが必要であり、再びその象徴でgss_が_秒_文脈を受け入れるのを呼ばなければなりません。
Wray Standards Track [Page 31] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[31ページ]: C-結合2000年1月
GSS_S_DEFECTIVE_TOKEN Indicates that consistency checks performed on the input_token failed.
GSS_S、_一貫性チェックが入力_象徴に実行したDEFECTIVE_TOKEN Indicatesは失敗しました。
GSS_S_DEFECTIVE_CREDENTIAL Indicates that consistency checks performed on the credential failed.
GSS_S、_一貫性チェックが信任状に実行したDEFECTIVE_CREDENTIAL Indicatesは失敗しました。
GSS_S_NO_CRED The supplied credentials were not valid for context acceptance, or the credential handle did not reference any credentials.
__いいえ、CRED。GSS_S、文脈承認には、供給された信任状が有効でなかったか、または信任状ハンドルはどんな参照にもどんな信任状もしませんでした。
GSS_S_CREDENTIALS_EXPIRED The referenced credentials have expired.
_GSS_S CREDENTIALS_EXPIRED、参照をつけられた信任状は期限が切れました。
GSS_S_BAD_BINDINGS The input_token contains different channel bindings to those specified via the input_chan_bindings parameter.
_GSS_S BAD_BINDINGS、入力_象徴は入力_chan_結合パラメタで指定されたものに異なったチャンネル結合を含んでいます。
GSS_S_NO_CONTEXT Indicates that the supplied context handle did not refer to a valid context.
_供給された文脈が扱ういいえ_CONTEXT IndicatesがそうするGSS_Sは有効な文脈を示しません。
GSS_S_BAD_SIG The input_token contains an invalid MIC.
入力_象徴が含むGSS_S_BAD_SIG、無効のMIC。
GSS_S_OLD_TOKEN The input_token was too old. This is a fatal error during context establishment.
_GSS_S OLD_TOKEN、入力_象徴は古過ぎました。 文脈設立の間、これは致命的な誤りです。
GSS_S_DUPLICATE_TOKEN The input_token is valid, but is a duplicate of a token already processed. This is a fatal error during context establishment.
_GSS_S DUPLICATE_TOKEN、入力_象徴は、有効ですが、既に処理された象徴の写しです。 文脈設立の間、これは致命的な誤りです。
GSS_S_BAD_MECH The received token specified a mechanism that is not supported by the implementation or the provided credential.
_GSS_S BAD_MECH、容認された象徴は実現か提供された信任状によってサポートされないメカニズムを指定しました。
5.2. gss_acquire_cred
5.2. gss_は_信用を取得します。
OM_uint32 gss_acquire_cred ( OM_uint32 *minor_status, const gss_name_t desired_name, OM_uint32 time_req, const gss_OID_set desired_mechs, gss_cred_usage_t cred_usage, gss_cred_id_t *output_cred_handle, gss_OID_set *actual_mechs, OM_uint32 *time_rec)
OM_uint32 gss_は_信用を取得します。(OM_uint32*小さい方の_状態、const gssの_の名前_t必要な_名、OM_uint32時間_req、OID_が設定したconst gss_は_mechs、gss_信用_用法_t信用_用法、gss_信用_イド_t*出力_信用_ハンドルを望んでいて、gss_OID_は_*実際の_mechs、OM_uint32*時間recを設定しました)
Wray Standards Track [Page 32] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[32ページ]: C-結合2000年1月
Purpose:
目的:
Allows an application to acquire a handle for a pre-existing credential by name. GSS-API implementations must impose a local access-control policy on callers of this routine to prevent unauthorized callers from acquiring credentials to which they are not entitled. This routine is not intended to provide a "login to the network" function, as such a function would involve the creation of new credentials rather than merely acquiring a handle to existing credentials. Such functions, if required, should be defined in implementation-specific extensions to the API.
アプリケーションが名前の先在の信任状のためにハンドルを入手するのを許容します。 GSS-API実行は、権限のない訪問者がそれらが権利を与えられない信任状を取得するのを防ぐためにローカルのアクセス管理方針をこのルーチンの訪問者に課さなければなりません。 このルーチンが「ネットワークへのログイン」機能を提供することを意図しません、そのような機能が単に既存の信任状にハンドルを入手するよりむしろ新しい信任状の創造にかかわるだろうというとき。 必要なら、そのような機能は実現特有の拡大でAPIと定義されるべきです。
If desired_name is GSS_C_NO_NAME, the call is interpreted as a request for a credential handle that will invoke default behavior when passed to gss_init_sec_context() (if cred_usage is GSS_C_INITIATE or GSS_C_BOTH) or gss_accept_sec_context() (if cred_usage is GSS_C_ACCEPT or GSS_C_BOTH).
必要な_名がGSS_C_いいえ_NAMEであるなら、gss_イニット_秒_文脈()に通過されると(信用_用法がGSS_C_INITIATEか_GSS_C BOTHであるなら)デフォルトの振舞いを呼び出す信任しているハンドルかgss_を求める要求が_秒_文脈()を受け入れるとき(信用_用法がGSS_C_ACCEPTか_GSS_C BOTHであるなら)、呼び出しは解釈されます。
Mechanisms should honor the desired_mechs parameter, and return a credential that is suitable to use only with the requested mechanisms. An exception to this is the case where one underlying credential element can be shared by multiple mechanisms; in this case it is permissible for an implementation to indicate all mechanisms with which the credential element may be used. If desired_mechs is an empty set, behavior is undefined.
メカニズムは、必要な_mechsパラメタを光栄に思って、要求されたメカニズムだけと共に使用するのにおいて適当な信任状を返すはずです。これへの例外は複数のメカニズムで1つの基本的な信任している要素を共有できるケースです。 この場合、実現が信任している要素が使用されるかもしれないすべてのメカニズムを示すのは、許されています。 必要な_mechsが空集合であるなら、振舞いは未定義です。
This routine is expected to be used primarily by context acceptors, since implementations are likely to provide mechanism-specific ways of obtaining GSS-API initiator credentials from the system login process. Some implementations may therefore not support the acquisition of GSS_C_INITIATE or GSS_C_BOTH credentials via gss_acquire_cred for any name other than GSS_C_NO_NAME, or a name produced by applying either gss_inquire_cred to a valid credential, or gss_inquire_context to an active context.
主として文脈アクセプタによってこのルーチンが使用されると予想されます、実現がシステムログインの過程からGSS-API創始者信任状を得るメカニズム特有の方法を提供しそうであるので。 したがって、いくつかの実現が_GSS_C INITIATEの獲得を支持しないかもしれませんか、gss_を通したGSS_C_BOTH信任状が_GSS_Cいいえ_NAME以外のどんな名前のためにも_信用を取得するか、gss_を適用することによって作成された名前が有効な信任状に_信用について問い合わせるか、またはgss_はアクティブな文脈に_文脈について問い合わせます。
If credential acquisition is time-consuming for a mechanism, the mechanism may choose to delay the actual acquisition until the credential is required (e.g. by gss_init_sec_context or gss_accept_sec_context). Such mechanism-specific implementation decisions should be invisible to the calling application; thus a call of gss_inquire_cred immediately following the call of gss_acquire_cred must return valid credential data, and may therefore incur the overhead of a deferred credential acquisition.
メカニズムにおいて、信任している獲得が手間がかかっているなら、メカニズムは、信任状が必要になるまで(例えば、gss_イニットの_秒_文脈かgss_で、_秒_文脈を受け入れてください)実際の獲得を遅らせるのを選ぶかもしれません。 そのようなメカニズム特有の実現決定は呼ぶアプリケーションに目に見えないはずです。 したがって、gss_の呼び出しは、すぐに_が入手するgssでは、_信用が有効な信任しているデータを返さなければならないという要求に続いて、_信用について問い合わせて、したがって、延期された信任している獲得のオーバーヘッドを被るかもしれません。
Wray Standards Track [Page 33] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[33ページ]: C-結合2000年1月
Parameters:
パラメタ:
desired_name gss_name_t, read Name of principal whose credential should be acquired
必要な_名前gss_名前_t信任状が取得されるべきである校長のNameが読まれて、
time_req Integer, read, optional number of seconds that credentials should remain valid. Specify GSS_C_INDEFINITE to request that the credentials have the maximum permitted lifetime.
時間_req Integer、読んでください、そして、信任状がそうするべきである任意の数の秒が有効なままで残っています。 _GSS_C INDEFINITEを指定して、信任状には最大の受入れられた寿命があるよう要求してください。
desired_mechs Set of Object IDs, read, optional set of underlying security mechanisms that may be used. GSS_C_NO_OID_SET may be used to obtain an implementation-specific default.
使用されるかもしれない基本的なセキュリティー対策について設定されて、任意の状態で_読まれたObject IDのmechs Setを望んでいました。 _OID_SETがないのが使用されているかもしれないGSS_C_は実現特有のデフォルトを得ます。
cred_usage gss_cred_usage_t, read GSS_C_BOTH - Credentials may be used either to initiate or accept security contexts. GSS_C_INITIATE - Credentials will only be used to initiate security contexts. GSS_C_ACCEPT - Credentials will only be used to accept security contexts.
_GSS_C BOTHは、信用_用法が_信用_用法_tをgssすると読みます--信任状は、セキュリティ文脈を開始するか、または受け入れるのに使用されるかもしれません。 GSS_C_INITIATE--信任状は、セキュリティ文脈を開始するのに使用されるだけでしょう。 GSS_C_ACCEPT--信任状は、セキュリティ文脈を受け入れるのに使用されるだけでしょう。
output_cred_handle gss_cred_id_t, modify The returned credential handle. Resources associated with this credential handle must be released by the application after use with a call to gss_release_cred().
_信用_ハンドルgss_信用_イド_tを出力してください、そして、返された信任しているハンドルを変更してください。 使用の後に呼び出しでアプリケーションでgss_リリース_信用()にこの信任しているハンドルに関連しているリソースを発表しなければなりません。
actual_mechs Set of Object IDs, modify, optional The set of mechanisms for which the credential is valid. Storage associated with the returned OID-set must be released by the application after use with a call to gss_release_oid_set(). Specify NULL if not required.
実際、_Object IDのmechs Set、変更、任意である、信任状が有効であるメカニズムのセット。 _gss_リリースoid_への呼び出しによる使用が()を設定した後にアプリケーションで返されたOID-セットに関連している格納をリリースしなければなりません。 必要でないなら、NULLを指定してください。
time_rec Integer, modify, optional Actual number of seconds for which the returned credentials will remain valid. If the implementation does not support expiration of credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required
時間_rec Integer、変更、返された信任状が有効なままで残っている任意のActual秒数。 実現が信任状の満了を支持しないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
Wray Standards Track [Page 34] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[34ページ]: C-結合2000年1月
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_MECH Unavailable mechanism requested
BAD_MECH Unavailableメカニズムが要求したGSS_S_
GSS_S_BAD_NAMETYPE Type contained within desired_name parameter is not supported
BAD_NAMETYPE Typeが必要な_名前パラメタの中に含んだGSS_S_は支持されません。
GSS_S_BAD_NAME Value supplied for desired_name parameter is ill formed.
BAD_NAME Valueが必要な_名前パラメタに供給したGSS_S_はほとんど形成されません。
GSS_S_CREDENTIALS_EXPIRED The credentials could not be acquired Because they have expired.
信任状は後天的なBecauseがそれらであるなら期限が切れることができないでしょうに。_GSS_S CREDENTIALS_EXPIRED、期限が切れました。
GSS_S_NO_CRED No credentials were found for the specified name.
GSS_S_いいえ_CREDいいえ信任状は指定された名前に関して見つけられました。
5.3. gss_add_cred
5.3. gss_は_信用を加えます。
OM_uint32 gss_add_cred ( OM_uint32 *minor_status, const gss_cred_id_t input_cred_handle, const gss_name_t desired_name, const gss_OID desired_mech, gss_cred_usage_t cred_usage, OM_uint32 initiator_time_req, OM_uint32 acceptor_time_req, gss_cred_id_t *output_cred_handle, gss_OID_set *actual_mechs, OM_uint32 *initiator_time_rec, OM_uint32 *acceptor_time_rec)
OM_uint32 gss_は_信用を加えます。小さい方..状態..信用..イド..入力..信用..ハンドル..名前..必要..名前..必要..信用..用法..信用..用法..創始者..時間..アクセプタ..時間..信用..イド..出力..信用..ハンドル..設定..実際..創始者..時間..アクセプタ..時間
Purpose:
目的:
Adds a credential-element to a credential. The credential-element is identified by the name of the principal to which it refers. GSS-API implementations must impose a local access-control policy on callers of this routine to prevent unauthorized callers from acquiring credential-elements to which they are not entitled. This routine is not intended to provide a "login to the network" function, as such a function would involve the creation of new mechanism-specific authentication data, rather than merely acquiring a GSS-API handle to existing data. Such functions, if required, should be defined in implementation-specific extensions to the API.
信任している要素に、信任状に追加します。 信任している要素はそれが照会される校長の名前によって特定されます。 GSS-API実行は、権限のない訪問者がそれらが権利を与えられない信任している要素を帯びるのを防ぐためにローカルのアクセス管理方針をこのルーチンの訪問者に課さなければなりません。 このルーチンが「ネットワークへのログイン」機能を提供することを意図しません、そのような機能が単にGSS-APIハンドルを既存のデータに入手するよりむしろ新しいメカニズム特有の認証データの創造にかかわるだろうというとき。 必要なら、そのような機能は実現特有の拡大でAPIと定義されるべきです。
Wray Standards Track [Page 35] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[35ページ]: C-結合2000年1月
If desired_name is GSS_C_NO_NAME, the call is interpreted as a request to add a credential element that will invoke default behavior when passed to gss_init_sec_context() (if cred_usage is GSS_C_INITIATE or GSS_C_BOTH) or gss_accept_sec_context() (if cred_usage is GSS_C_ACCEPT or GSS_C_BOTH).
必要な_名がGSS_C_いいえ_NAMEであるなら、呼び出しは__秒_文脈()を受け入れるようにgss_イニット_秒_文脈()(信用_用法がGSS_C_INITIATEか_GSS_C BOTHであるなら)かgssに通過されるとデフォルトの振舞いを呼び出す信任している要素に言い足すという要求として解釈されます(信用_用法がGSS_C_ACCEPTか_GSS_C BOTHであるなら)。
This routine is expected to be used primarily by context acceptors, since implementations are likely to provide mechanism-specific ways of obtaining GSS-API initiator credentials from the system login process. Some implementations may therefore not support the acquisition of GSS_C_INITIATE or GSS_C_BOTH credentials via gss_acquire_cred for any name other than GSS_C_NO_NAME, or a name produced by applying either gss_inquire_cred to a valid credential, or gss_inquire_context to an active context.
This routine is expected to be used primarily by context acceptors, since implementations are likely to provide mechanism-specific ways of obtaining GSS-API initiator credentials from the system login process. Some implementations may therefore not support the acquisition of GSS_C_INITIATE or GSS_C_BOTH credentials via gss_acquire_cred for any name other than GSS_C_NO_NAME, or a name produced by applying either gss_inquire_cred to a valid credential, or gss_inquire_context to an active context.
If credential acquisition is time-consuming for a mechanism, the mechanism may choose to delay the actual acquisition until the credential is required (e.g. by gss_init_sec_context or gss_accept_sec_context). Such mechanism-specific implementation decisions should be invisible to the calling application; thus a call of gss_inquire_cred immediately following the call of gss_add_cred must return valid credential data, and may therefore incur the overhead of a deferred credential acquisition.
If credential acquisition is time-consuming for a mechanism, the mechanism may choose to delay the actual acquisition until the credential is required (e.g. by gss_init_sec_context or gss_accept_sec_context). Such mechanism-specific implementation decisions should be invisible to the calling application; thus a call of gss_inquire_cred immediately following the call of gss_add_cred must return valid credential data, and may therefore incur the overhead of a deferred credential acquisition.
This routine can be used to either compose a new credential containing all credential-elements of the original in addition to the newly-acquire credential-element, or to add the new credential- element to an existing credential. If NULL is specified for the output_cred_handle parameter argument, the new credential-element will be added to the credential identified by input_cred_handle; if a valid pointer is specified for the output_cred_handle parameter, a new credential handle will be created.
This routine can be used to either compose a new credential containing all credential-elements of the original in addition to the newly-acquire credential-element, or to add the new credential- element to an existing credential. If NULL is specified for the output_cred_handle parameter argument, the new credential-element will be added to the credential identified by input_cred_handle; if a valid pointer is specified for the output_cred_handle parameter, a new credential handle will be created.
If GSS_C_NO_CREDENTIAL is specified as the input_cred_handle, gss_add_cred will compose a credential (and set the output_cred_handle parameter accordingly) based on default behavior. That is, the call will have the same effect as if the application had first made a call to gss_acquire_cred(), specifying the same usage and passing GSS_C_NO_NAME as the desired_name parameter to obtain an explicit credential handle embodying default behavior, passed this credential handle to gss_add_cred(), and finally called gss_release_cred() on the first credential handle.
If GSS_C_NO_CREDENTIAL is specified as the input_cred_handle, gss_add_cred will compose a credential (and set the output_cred_handle parameter accordingly) based on default behavior. That is, the call will have the same effect as if the application had first made a call to gss_acquire_cred(), specifying the same usage and passing GSS_C_NO_NAME as the desired_name parameter to obtain an explicit credential handle embodying default behavior, passed this credential handle to gss_add_cred(), and finally called gss_release_cred() on the first credential handle.
If GSS_C_NO_CREDENTIAL is specified as the input_cred_handle parameter, a non-NULL output_cred_handle must be supplied.
If GSS_C_NO_CREDENTIAL is specified as the input_cred_handle parameter, a non-NULL output_cred_handle must be supplied.
Wray Standards Track [Page 36] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 36] RFC 2744 GSS-API V2: C-bindings January 2000
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code.
minor_status Integer, modify Mechanism specific status code.
input_cred_handle gss_cred_id_t, read, optional The credential to which a credential-element will be added. If GSS_C_NO_CREDENTIAL is specified, the routine will compose the new credential based on default behavior (see description above). Note that, while the credential-handle is not modified by gss_add_cred(), the underlying credential will be modified if output_credential_handle is NULL.
input_cred_handle gss_cred_id_t, read, optional The credential to which a credential-element will be added. If GSS_C_NO_CREDENTIAL is specified, the routine will compose the new credential based on default behavior (see description above). Note that, while the credential-handle is not modified by gss_add_cred(), the underlying credential will be modified if output_credential_handle is NULL.
desired_name gss_name_t, read. Name of principal whose credential should be acquired.
desired_name gss_name_t, read. Name of principal whose credential should be acquired.
desired_mech Object ID, read Underlying security mechanism with which the credential may be used.
desired_mech Object ID, read Underlying security mechanism with which the credential may be used.
cred_usage gss_cred_usage_t, read GSS_C_BOTH - Credential may be used either to initiate or accept security contexts. GSS_C_INITIATE - Credential will only be used to initiate security contexts. GSS_C_ACCEPT - Credential will only be used to accept security contexts.
cred_usage gss_cred_usage_t, read GSS_C_BOTH - Credential may be used either to initiate or accept security contexts. GSS_C_INITIATE - Credential will only be used to initiate security contexts. GSS_C_ACCEPT - Credential will only be used to accept security contexts.
initiator_time_req Integer, read, optional number of seconds that the credential should remain valid for initiating security contexts. This argument is ignored if the composed credentials are of type GSS_C_ACCEPT. Specify GSS_C_INDEFINITE to request that the credentials have the maximum permitted initiator lifetime.
initiator_time_req Integer, read, optional number of seconds that the credential should remain valid for initiating security contexts. This argument is ignored if the composed credentials are of type GSS_C_ACCEPT. Specify GSS_C_INDEFINITE to request that the credentials have the maximum permitted initiator lifetime.
acceptor_time_req Integer, read, optional number of seconds that the credential should remain valid for accepting security contexts. This argument is ignored if the composed credentials are of type GSS_C_INITIATE.
acceptor_time_req Integer, read, optional number of seconds that the credential should remain valid for accepting security contexts. This argument is ignored if the composed credentials are of type GSS_C_INITIATE.
Wray Standards Track [Page 37] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 37] RFC 2744 GSS-API V2: C-bindings January 2000
Specify GSS_C_INDEFINITE to request that the credentials have the maximum permitted initiator lifetime.
Specify GSS_C_INDEFINITE to request that the credentials have the maximum permitted initiator lifetime.
output_cred_handle gss_cred_id_t, modify, optional The returned credential handle, containing the new credential-element and all the credential-elements from input_cred_handle. If a valid pointer to a gss_cred_id_t is supplied for this parameter, gss_add_cred creates a new credential handle containing all credential-elements from the input_cred_handle and the newly acquired credential-element; if NULL is specified for this parameter, the newly acquired credential-element will be added to the credential identified by input_cred_handle.
output_cred_handle gss_cred_id_t, modify, optional The returned credential handle, containing the new credential-element and all the credential-elements from input_cred_handle. If a valid pointer to a gss_cred_id_t is supplied for this parameter, gss_add_cred creates a new credential handle containing all credential-elements from the input_cred_handle and the newly acquired credential-element; if NULL is specified for this parameter, the newly acquired credential-element will be added to the credential identified by input_cred_handle.
The resources associated with any credential handle returned via this parameter must be released by the application after use with a call to gss_release_cred().
The resources associated with any credential handle returned via this parameter must be released by the application after use with a call to gss_release_cred().
actual_mechs Set of Object IDs, modify, optional The complete set of mechanisms for which the new credential is valid. Storage for the returned OID-set must be freed by the application after use with a call to gss_release_oid_set(). Specify NULL if not required.
actual_mechs Set of Object IDs, modify, optional The complete set of mechanisms for which the new credential is valid. Storage for the returned OID-set must be freed by the application after use with a call to gss_release_oid_set(). Specify NULL if not required.
initiator_time_rec Integer, modify, optional Actual number of seconds for which the returned credentials will remain valid for initiating contexts using the specified mechanism. If the implementation or mechanism does not support expiration of credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required
initiator_time_rec Integer, modify, optional Actual number of seconds for which the returned credentials will remain valid for initiating contexts using the specified mechanism. If the implementation or mechanism does not support expiration of credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required
acceptor_time_rec Integer, modify, optional Actual number of seconds for which the returned credentials will remain valid for accepting security contexts using the specified mechanism. If the implementation or mechanism does not support expiration of credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required
acceptor_time_rec Integer, modify, optional Actual number of seconds for which the returned credentials will remain valid for accepting security contexts using the specified mechanism. If the implementation or mechanism does not support expiration of credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required
Wray Standards Track [Page 38] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 38] RFC 2744 GSS-API V2: C-bindings January 2000
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_BAD_MECH Unavailable mechanism requested
GSS_S_BAD_MECH Unavailable mechanism requested
GSS_S_BAD_NAMETYPE Type contained within desired_name parameter is not supported
GSS_S_BAD_NAMETYPE Type contained within desired_name parameter is not supported
GSS_S_BAD_NAME Value supplied for desired_name parameter is ill-formed.
GSS_S_BAD_NAME Value supplied for desired_name parameter is ill-formed.
GSS_S_DUPLICATE_ELEMENT The credential already contains an element for the requested mechanism with overlapping usage and validity period.
GSS_S_DUPLICATE_ELEMENT The credential already contains an element for the requested mechanism with overlapping usage and validity period.
GSS_S_CREDENTIALS_EXPIRED The required credentials could not be added because they have expired.
GSS_S_CREDENTIALS_EXPIRED The required credentials could not be added because they have expired.
GSS_S_NO_CRED No credentials were found for the specified name.
GSS_S_NO_CRED No credentials were found for the specified name.
5.4. gss_add_oid_set_member
5.4. gss_add_oid_set_member
OM_uint32 gss_add_oid_set_member ( OM_uint32 *minor_status, const gss_OID member_oid, gss_OID_set *oid_set)
OM_uint32 gss_add_oid_set_member ( OM_uint32 *minor_status, const gss_OID member_oid, gss_OID_set *oid_set)
Purpose:
Purpose:
Add an Object Identifier to an Object Identifier set. This routine is intended for use in conjunction with gss_create_empty_oid_set when constructing a set of mechanism OIDs for input to gss_acquire_cred. The oid_set parameter must refer to an OID-set that was created by GSS-API (e.g. a set returned by gss_create_empty_oid_set()). GSS-API creates a copy of the member_oid and inserts this copy into the set, expanding the storage allocated to the OID-set's elements array if necessary. The routine may add the new member OID anywhere within the elements array, and implementations should verify that the new member_oid is not already contained within the elements array; if the member_oid is already present, the oid_set should remain unchanged.
Add an Object Identifier to an Object Identifier set. This routine is intended for use in conjunction with gss_create_empty_oid_set when constructing a set of mechanism OIDs for input to gss_acquire_cred. The oid_set parameter must refer to an OID-set that was created by GSS-API (e.g. a set returned by gss_create_empty_oid_set()). GSS-API creates a copy of the member_oid and inserts this copy into the set, expanding the storage allocated to the OID-set's elements array if necessary. The routine may add the new member OID anywhere within the elements array, and implementations should verify that the new member_oid is not already contained within the elements array; if the member_oid is already present, the oid_set should remain unchanged.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
Wray Standards Track [Page 39] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 39] RFC 2744 GSS-API V2: C-bindings January 2000
member_oid Object ID, read The object identifier to copied into the set.
member_oid Object ID, read The object identifier to copied into the set.
oid_set Set of Object ID, modify The set in which the object identifier should be inserted.
oid_set Set of Object ID, modify The set in which the object identifier should be inserted.
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
5.5. gss_canonicalize_name
5.5. gss_canonicalize_name
OM_uint32 gss_canonicalize_name ( OM_uint32 *minor_status, const gss_name_t input_name, const gss_OID mech_type, gss_name_t *output_name)
OM_uint32 gss_canonicalize_name ( OM_uint32 *minor_status, const gss_name_t input_name, const gss_OID mech_type, gss_name_t *output_name)
Purpose:
Purpose:
Generate a canonical mechanism name (MN) from an arbitrary internal name. The mechanism name is the name that would be returned to a context acceptor on successful authentication of a context where the initiator used the input_name in a successful call to gss_acquire_cred, specifying an OID set containing <mech_type> as its only member, followed by a call to gss_init_sec_context, specifying <mech_type> as the authentication mechanism.
Generate a canonical mechanism name (MN) from an arbitrary internal name. The mechanism name is the name that would be returned to a context acceptor on successful authentication of a context where the initiator used the input_name in a successful call to gss_acquire_cred, specifying an OID set containing <mech_type> as its only member, followed by a call to gss_init_sec_context, specifying <mech_type> as the authentication mechanism.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
input_name gss_name_t, read The name for which a canonical form is desired
input_name gss_name_t, read The name for which a canonical form is desired
mech_type Object ID, read The authentication mechanism for which the canonical form of the name is desired. The desired mechanism must be specified explicitly; no default is provided.
mech_type Object ID, read The authentication mechanism for which the canonical form of the name is desired. The desired mechanism must be specified explicitly; no default is provided.
Wray Standards Track [Page 40] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 40] RFC 2744 GSS-API V2: C-bindings January 2000
output_name gss_name_t, modify The resultant canonical name. Storage associated with this name must be freed by the application after use with a call to gss_release_name().
output_name gss_name_t, modify The resultant canonical name. Storage associated with this name must be freed by the application after use with a call to gss_release_name().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion.
GSS_S_COMPLETE Successful completion.
GSS_S_BAD_MECH The identified mechanism is not supported.
GSS_S_BAD_MECH The identified mechanism is not supported.
GSS_S_BAD_NAMETYPE The provided internal name contains no elements that could be processed by the specified mechanism.
GSS_S_BAD_NAMETYPE The provided internal name contains no elements that could be processed by the specified mechanism.
GSS_S_BAD_NAME The provided internal name was ill-formed.
GSS_S_BAD_NAME The provided internal name was ill-formed.
5.6. gss_compare_name
5.6. gss_compare_name
OM_uint32 gss_compare_name ( OM_uint32 *minor_status, const gss_name_t name1, const gss_name_t name2, int *name_equal)
OM_uint32 gss_compare_name ( OM_uint32 *minor_status, const gss_name_t name1, const gss_name_t name2, int *name_equal)
Purpose:
Purpose:
Allows an application to compare two internal-form names to determine whether they refer to the same entity.
Allows an application to compare two internal-form names to determine whether they refer to the same entity.
If either name presented to gss_compare_name denotes an anonymous principal, the routines should indicate that the two names do not refer to the same identity.
If either name presented to gss_compare_name denotes an anonymous principal, the routines should indicate that the two names do not refer to the same identity.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code.
minor_status Integer, modify Mechanism specific status code.
name1 gss_name_t, read internal-form name
name1 gss_name_t, read internal-form name
name2 gss_name_t, read internal-form name
name2 gss_name_t, read internal-form name
Wray Standards Track [Page 41] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 41] RFC 2744 GSS-API V2: C-bindings January 2000
name_equal boolean, modify non-zero - names refer to same entity zero - names refer to different entities (strictly, the names are not known to refer to the same identity).
name_equal boolean, modify non-zero - names refer to same entity zero - names refer to different entities (strictly, the names are not known to refer to the same identity).
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_BAD_NAMETYPE The two names were of incomparable types.
GSS_S_BAD_NAMETYPE The two names were of incomparable types.
GSS_S_BAD_NAME One or both of name1 or name2 was ill-formed.
GSS_S_BAD_NAME One or both of name1 or name2 was ill-formed.
5.7. gss_context_time
5.7. gss_context_time
OM_uint32 gss_context_time ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, OM_uint32 *time_rec)
OM_uint32 gss_context_time ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, OM_uint32 *time_rec)
Purpose:
Purpose:
Determines the number of seconds for which the specified context will remain valid.
Determines the number of seconds for which the specified context will remain valid.
Parameters:
Parameters:
minor_status Integer, modify Implementation specific status code.
minor_status Integer, modify Implementation specific status code.
context_handle gss_ctx_id_t, read Identifies the context to be interrogated.
context_handle gss_ctx_id_t, read Identifies the context to be interrogated.
time_rec Integer, modify Number of seconds that the context will remain valid. If the context has already expired, zero will be returned.
time_rec Integer, modify Number of seconds that the context will remain valid. If the context has already expired, zero will be returned.
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_CONTEXT_EXPIRED The context has already expired
GSS_S_CONTEXT_EXPIRED The context has already expired
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
Wray Standards Track [Page 42] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 42] RFC 2744 GSS-API V2: C-bindings January 2000
5.8. gss_create_empty_oid_set
5.8. gss_create_empty_oid_set
OM_uint32 gss_create_empty_oid_set ( OM_uint32 *minor_status, gss_OID_set *oid_set)
OM_uint32 gss_create_empty_oid_set ( OM_uint32 *minor_status, gss_OID_set *oid_set)
Purpose:
Purpose:
Create an object-identifier set containing no object identifiers, to which members may be subsequently added using the gss_add_oid_set_member() routine. These routines are intended to be used to construct sets of mechanism object identifiers, for input to gss_acquire_cred.
Create an object-identifier set containing no object identifiers, to which members may be subsequently added using the gss_add_oid_set_member() routine. These routines are intended to be used to construct sets of mechanism object identifiers, for input to gss_acquire_cred.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
oid_set Set of Object IDs, modify The empty object identifier set. The routine will allocate the gss_OID_set_desc object, which the application must free after use with a call to gss_release_oid_set().
oid_はObject IDのSetを設定して、空のオブジェクト識別子セットを変更してください。 ルーチンはgss_OID_セット_descオブジェクトを割り当てるでしょう。(_gss_リリースoid_への呼び出しによる使用が()を設定した後にアプリケーションはそれを解放しなければなりません)。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
5.9. gss_delete_sec_context
5.9. gss_は_秒_文脈を削除します。
OM_uint32 gss_delete_sec_context ( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, gss_buffer_t output_token)
OM_uint32 gss_は_秒_文脈を削除します。(OM_uint32*小さい方の_状態、gss_ctx_イド_t*文脈_ハンドル、gss_バッファ_t出力_トークン)
Purpose:
目的:
Delete a security context. gss_delete_sec_context will delete the local data structures associated with the specified security context, and may generate an output_token, which when passed to the peer gss_process_context_token will instruct it to do likewise. If no token is required by the mechanism, the GSS-API should set the length field of the output_token (if provided) to zero. No further security services may be obtained using the context specified by context_handle.
セキュリティ文脈を削除してください。gss_は_文脈が指定されたセキュリティ文脈に関連しているローカルのデータ構造を削除する_秒を削除して、出力_トークンを生成してもよいです。(同輩gss_プロセス_文脈_トークンに通過されると、それは、同様にそうするようそれに命令するでしょう)。 トークンが全くメカニズムによって必要とされないなら、GSS-APIは出力_トークン(提供するなら)の長さの分野をゼロに設定するはずです。 文脈_ハンドルによって指定された文脈を使用することでさらなるセキュリティー・サービスを全く得ないかもしれません。
Wray Standards Track [Page 43] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[43ページ]: C-結合2000年1月
In addition to deleting established security contexts, gss_delete_sec_context must also be able to delete "half-built" security contexts resulting from an incomplete sequence of gss_init_sec_context()/gss_accept_sec_context() calls.
確立したセキュリティ関係、_が削除するgssを削除することまた_秒_関係が削除できなければならないに加えて、gss_イニット_秒_文脈()/gss_の不完全な系列から生じる「半分組立」のセキュリティ文脈が_秒_文脈()呼び出しを受け入れます。
The output_token parameter is retained for compatibility with version 1 of the GSS-API. It is recommended that both peer applications invoke gss_delete_sec_context passing the value GSS_C_NO_BUFFER for the output_token parameter, indicating that no token is required, and that gss_delete_sec_context should simply delete local context data structures. If the application does pass a valid buffer to gss_delete_sec_context, mechanisms are encouraged to return a zero- length token, indicating that no peer action is necessary, and that no token should be transferred by the application.
出力_トークンパラメタはGSS-APIのバージョン1との互換性のために保有されます。 __出力_トークンパラメタのために_値GSS_Cのいいえ_BUFFERを渡す秒_文脈を削除して、トークンは全く必要でないことを示しながら両方の同輩アプリケーションがgssを呼び出すのが、お勧めであり、gss_が_秒_文脈を削除するのが単にローカルの文脈データ構造を削除するべきです。 _アプリケーションが有効なバッファをgssに渡すなら、どんな同輩動作も必要でなく、トークンが全くアプリケーションで移されるべきでないのを示して、無の長さのトークンを返す_文脈、メカニズムが奨励される_秒を削除してください。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, modify context handle identifying context to delete. After deleting the context, the GSS-API will set this context handle to GSS_C_NO_CONTEXT.
文脈_はgss_ctx_イド_tを扱って、削除する文脈を特定する文脈ハンドルを変更してください。 文脈を削除した後に、GSS-APIは_GSS_Cいいえ_CONTEXTにこの文脈ハンドルを設定するでしょう。
output_token buffer, opaque, modify, optional token to be sent to remote application to instruct it to also delete the context. It is recommended that applications specify GSS_C_NO_BUFFER for this parameter, requesting local deletion only. If a buffer parameter is provided by the application, the mechanism may return a token in it; mechanisms that implement only local deletion should set the length field of this token to zero to indicate to the application that no token is to be sent to the peer.
_トークンバッファ、不透明なものが変更する出力、また、文脈を削除するようそれに命令するためにリモートアプリケーションに送られる任意のトークン。 地方の削除だけを要求して、アプリケーションが_GSS_Cいいえ_BUFFERをこのパラメタに指定するのは、お勧めです。 アプリケーションでバッファパラメタを提供するなら、メカニズムはそれでトークンを返すかもしれません。 地方の削除だけを実装するメカニズムは、ゼロへのこのトークンの長さの分野にどんなトークンも同輩に送られないことであることをアプリケーションに示すように設定するはずです。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CONTEXT No valid context was supplied
どんな_のCONTEXTのいいえの有効な文脈も提供されなかったGSS_S_
Wray Standards Track [Page 44] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[44ページ]: C-結合2000年1月
5.10.gss_display_name
5.10. gss_ディスプレイ_名
OM_uint32 gss_display_name ( OM_uint32 *minor_status, const gss_name_t input_name, gss_buffer_t output_name_buffer, gss_OID *output_name_type)
OM_uint32 gss_ディスプレイ_名(OM_uint32*小さい方の_状態、const gss_名前_t入力_名、gss_バッファ_t出力_名前_バッファ、gss_OID*出力_名前_タイプ)
Purpose:
目的:
Allows an application to obtain a textual representation of an opaque internal-form name for display purposes. The syntax of a printable name is defined by the GSS-API implementation.
アプリケーションが不明瞭な内部のフォーム名の原文の表現をディスプレイ目的として得るのを許容します。 印刷可能な名前の構文はGSS-API実行で定義されます。
If input_name denotes an anonymous principal, the implementation should return the gss_OID value GSS_C_NT_ANONYMOUS as the output_name_type, and a textual name that is syntactically distinct from all valid supported printable names in output_name_buffer.
入力_名前が匿名の元本を指示するなら、実装は、タイプという出力_名前_としてgss_OID値のGSS_C_NT_更生会を返して、出力_名前_の妥当なサポートしている印刷可能な名前がバッファリングするすべてからシンタクス上異なった原文の名前を返すべきです。
If input_name was created by a call to gss_import_name, specifying GSS_C_NO_OID as the name-type, implementations that employ lazy conversion between name types may return GSS_C_NO_OID via the output_name_type parameter.
_入力_名前が呼び出しでgss_輸入に作成されたなら、名前タイプの間の怠惰な変換が出力_名前_型引数でGSS_C_いいえ_OIDを返すかもしれないその雇用と名前タイプとして_GSS_Cいいえ_OIDを指定することでの実装を命名してください。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
input_name gss_name_t, read name to be displayed
名前が表示するために読まれた入力_名前gss_名前_t
output_name_buffer buffer, character-string, modify buffer to receive textual name string. The application must free storage associated with this name after use with a call to gss_release_buffer().
出力_名前_バッファバッファ、文字列は、原文の名前ストリングを受け取るようにバッファを変更します。 アプリケーションは使用の後に呼び出しでこの名前に関連しているストレージをgss_リリース_バッファ()に解放しなければなりません。
output_name_type Object ID, modify, optional The type of the returned name. The returned gss_OID will be a pointer into static storage, and should be treated as read-only by the caller (in particular, the application should not attempt to free it). Specify NULL if not required.
_名前_タイプObject IDを出力してください、変更、任意である、返された名前のタイプ。 返されたgss_OIDはスタティックストレージへの指針であり、訪問者によって書き込み禁止として扱われるべきです(特に、アプリケーションは、それを解放するのを試みるべきではありません)。 必要でないなら、NULLを指定してください。
Wray Standards Track [Page 45] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[45ページ]: C-結合2000年1月
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_NAME input_name was ill-formed
GSS_S_BAD_NAME入力_名は不適格でした。
5.11.gss_display_status
5.11. gss_ディスプレイ_状態
OM_uint32 gss_display_status ( OM_uint32 *minor_status, OM_uint32 status_value, int status_type, const gss_OID mech_type, OM_uint32 *message_context, gss_buffer_t status_string)
OM_uint32 gss_ディスプレイ_状態(OM_uint32*小さい方の_状態、OM_uint32状態_価値、int状態_タイプ、const gss_OID mech_タイプ、OM_uint32*メッセージ_文脈、gss_バッファ_t状態_ストリング)
Purpose:
目的:
Allows an application to obtain a textual representation of a GSS-API status code, for display to the user or for logging purposes. Since some status values may indicate multiple conditions, applications may need to call gss_display_status multiple times, each call generating a single text string. The message_context parameter is used by gss_display_status to store state information about which error messages have already been extracted from a given status_value; message_context must be initialized to 0 by the application prior to the first call, and gss_display_status will return a non-zero value in this parameter if there are further messages to extract.
アプリケーションがGSS-APIステータスコードの原文の表現をユーザへのディスプレイか伐採目的として得るのを許容します。 いくつかの状態値が複数の状態を示すかもしれないので、アプリケーションは、gss_を複数の回(ただ一つのテキスト文字列を生成する各呼び出し)ディスプレイ_状態と呼ぶ必要があるかもしれません。 メッセージ_文脈パラメタはgss_ディスプレイ_状態によって使用されて、エラーメッセージが与えられた状態_値から既に抜粋された州の情報を保存します。 準備ラッパの前にアプリケーションでメッセージ_文脈を0に初期化しなければなりません、そして、抜粋するメッセージがさらにあると、gss_ディスプレイ_状態はこのパラメタの非ゼロ値を返すでしょう。
The message_context parameter contains all state information required by gss_display_status in order to extract further messages from the status_value; even when a non-zero value is returned in this parameter, the application is not required to call gss_display_status again unless subsequent messages are desired. The following code extracts all messages from a given status code and prints them to stderr:
メッセージ_文脈パラメタは状態_値からさらなるメッセージを抜粋するためにgss_ディスプレイ_状態によって必要とされたすべての州の情報を含んでいます。 このパラメタで非ゼロ値を返すときさえ、その後のメッセージを望んでいない場合、再びgss_をディスプレイ_状態と呼ぶためにアプリケーションを必要としません。 以下のコードは、与えられたステータスコードからすべてのメッセージを抜粋して、stderrにそれらを印刷します:
OM_uint32 message_context; OM_uint32 status_code; OM_uint32 maj_status; OM_uint32 min_status; gss_buffer_desc status_string;
OM_uint32メッセージ_文脈。 OM_uint32状態_コード。 OM_uint32 maj_状態。 OM_uint32分_状態。 gss_バッファ_desc状態_ストリング。
...
...
message_context = 0;
メッセージ_文脈=0。
do {
{
Wray Standards Track [Page 46] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[46ページ]: C-結合2000年1月
maj_status = gss_display_status ( &min_status, status_code, GSS_C_GSS_CODE, GSS_C_NO_OID, &message_context, &status_string)
maj_状態はgss_ディスプレイ_状態と等しいです。(分_状態、状態_コード、GSS_C_GSS_CODE、GSS_C_いいえ_OID、およびメッセージ_文脈、および状態_ストリング)
fprintf(stderr, "%.*s\n", (int)status_string.length,
「fprintf、(stderr、」、%*s\n」、(int)状態_string.length
(char *)status_string.value);
(_炭*) 状態string.value)。
gss_release_buffer(&min_status, &status_string);
gss_リリース_バッファ(分_状態、および状態_ストリング)。
} while (message_context != 0);
(メッセージ_文脈!=0)である間。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
status_value Integer, read Status value to be converted
Status値が変換されるために読まれた状態_値のInteger
status_type Integer, read GSS_C_GSS_CODE - status_value is a GSS status code
状態_タイプInteger、_GSS_C GSS_CODEを読んでください--状態_値はGSSステータスコードです。
GSS_C_MECH_CODE - status_value is a mechanism status code
GSS_C_MECH_CODE--状態_値はメカニズムステータスコードです。
mech_type Object ID, read, optional Underlying mechanism (used to interpret a minor status value) Supply GSS_C_NO_OID to obtain the system default.
_mech_タイプObject ID、読んでください、システム・デフォルトを得る任意のUnderlyingメカニズム(以前はよく小さい方の状態値を解釈していた)供給GSS_Cいいえ_OID。
message_context Integer, read/modify Should be initialized to zero by the application prior to the first call. On return from gss_display_status(), a non-zero status_value parameter indicates that additional messages may be extracted from the status code via subsequent calls
メッセージ_文脈Integer、Shouldを読むか、または変更してください。準備ラッパの前にアプリケーションでゼロに初期化されてください。 gss_ディスプレイ_状態()からのリターンのときに、非ゼロ状態_値のパラメタは、追加メッセージがステータスコードからその後の呼び出しで抜粋されるかもしれないのを示します。
Wray Standards Track [Page 47] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[47ページ]: C-結合2000年1月
to gss_display_status(), passing the same status_value, status_type, mech_type, and message_context parameters.
同じ状態_価値、状態_タイプ、mech_タイプ、およびメッセージ_文脈パラメタを通過して、_状態()をgss_に表示してください。
status_string buffer, character string, modify textual interpretation of the status_value. Storage associated with this parameter must be freed by the application after use with a call to gss_release_buffer().
状態_ストリングバッファ、文字列は状態_価値の原文の解釈を変更します。 使用の後に呼び出しでアプリケーションでgss_リリース_バッファ()にこのパラメタに関連しているストレージを解放しなければなりません。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_MECH Indicates that translation in accordance with an unsupported mechanism type was requested
GSS_S_BAD_MECH Indicatesは要求されましたサポートされないメカニズムに従ったその翻訳が、タイプする。
GSS_S_BAD_STATUS The status value was not recognized, or the status type was neither GSS_C_GSS_CODE nor GSS_C_MECH_CODE.
_GSS_S BAD_STATUS、状態タイプは、状態値が認識されなかったか、_GSS_C GSS_CODEでなくてまたGSS_C_MECH_CODEではありませんでした。
5.12. gss_duplicate_name
5.12. gss_写し_名
OM_uint32 gss_duplicate_name ( OM_uint32 *minor_status, const gss_name_t src_name, gss_name_t *dest_name)
OM_uint32 gss_写し_名(OM_uint32*小さい方の_状態、const gss_名前_t src_名、gss_名前_t*dest_名)
Purpose:
目的:
Create an exact duplicate of the existing internal name src_name. The new dest_name will be independent of src_name (i.e. src_name and dest_name must both be released, and the release of one shall not affect the validity of the other).
既存の内部名src_名の正確な写しを作成してください。 新しいdest_名前はsrc_名前から独立するでしょう(すなわち、_名とdest_が命名するsrcをリリースしなければなりません、そして、1のリリースはもう片方の正当性に影響しないものとします)。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
src_name gss_name_t, read internal name to be duplicated.
内部名がコピーされるために読まれたsrc_名前gss_名前_t。
dest_name gss_name_t, modify The resultant copy of <src_name>. Storage associated with this name must be freed by the application after use with a call to gss_release_name().
_が_tと命名するdest_名前gss、<src_名前>の結果のコピーを変更してください。 使用の後に呼び出しでアプリケーションでgss_リリース_名()にこの名前に関連しているストレージを解放しなければなりません。
Wray Standards Track [Page 48] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[48ページ]: C-結合2000年1月
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_NAME The src_name parameter was ill-formed.
_GSS_S BAD_NAME、src_名前パラメタは不適格でした。
5.13. gss_export_name
5.13. gss_輸出_名
OM_uint32 gss_export_name ( OM_uint32 *minor_status, const gss_name_t input_name, gss_buffer_t exported_name)
OM_uint32 gss_輸出_名(OM_uint32*小さい方の_状態、const gss_名前_t入力_名、_名前であるとエクスポートされたgss_バッファ_t)
Purpose:
目的:
To produce a canonical contiguous string representation of a mechanism name (MN), suitable for direct comparison (e.g. with memcmp) for use in authorization functions (e.g. matching entries in an access-control list). The <input_name> parameter must specify a valid MN (i.e. an internal name generated by gss_accept_sec_context or by gss_canonicalize_name).
メカニズムの正準な隣接のストリング表現を作成するために、(ミネソタ)を命名してください、承認機能(例えば、アクセスコントロールリストにおける合っているエントリー)における使用で直接比較に適しています(例えば、memcmpと)。 <入力_名前>パラメタは有効なミネソタを指定しなければなりません(すなわち、gss_によって生成された内部名は、_秒_文脈を受け入れるか、またはgss_で_名前をcanonicalizeします)。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
input_name gss_name_t, read The MN to be exported
エクスポートされるためにミネソタに読み込まれた入力_名前gss_名前_t
exported_name gss_buffer_t, octet-string, modify The canonical contiguous string form of <input_name>. Storage associated with this string must freed by the application after use with gss_release_buffer().
エクスポートしている_名のgss_バッファ_t、八重奏ストリングは<入力_名前>の正準な隣接のストリングフォームを変更します。 使用の後にgss_リリース_バッファ()でアプリケーションで解放されて、このストリングに関連しているストレージはそうしなければなりません。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NAME_NOT_MN The provided internal name was not a mechanism name.
__ミネソタではなく、GSS_S NAME_、提供された内部名はメカニズム名ではありませんでした。
GSS_S_BAD_NAME The provided internal name was ill-formed.
_GSS_S BAD_NAME、提供された内部名は不適格でした。
GSS_S_BAD_NAMETYPE The internal name was of a type not supported by the GSS-API implementation.
_GSS_S BAD_NAMETYPE、GSS-API実行でサポートされなかったタイプには内部名がありました。
Wray Standards Track [Page 49] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[49ページ]: C-結合2000年1月
5.14. gss_export_sec_context
5.14. gss_輸出_秒_文脈
OM_uint32 gss_export_sec_context ( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, gss_buffer_t interprocess_token)
OM_uint32 gss_輸出_秒_文脈(OM_uint32*小さい方の_状態、gss_ctx_イド_t*文脈_ハンドル、gss_バッファ_tインタプロセス_トークン)
Purpose:
目的:
Provided to support the sharing of work between multiple processes. This routine will typically be used by the context-acceptor, in an application where a single process receives incoming connection requests and accepts security contexts over them, then passes the established context to one or more other processes for message exchange. gss_export_sec_context() deactivates the security context for the calling process and creates an interprocess token which, when passed to gss_import_sec_context in another process, will re-activate the context in the second process. Only a single instantiation of a given context may be active at any one time; a subsequent attempt by a context exporter to access the exported security context will fail.
複数のプロセスの間の仕事の共有をサポートするために、提供します。 このルーチンは文脈アクセプタによって通常使用されるでしょう、単一のプロセスが接続要求要求を受け取って、セキュリティ文脈をそれらの上に受け入れて、次に交換処理のために他の1つ以上のプロセスに確立した関係を通過するアプリケーションで。gss_輸出_秒_文脈()は、呼び出しプロセスのためのセキュリティ文脈を非活性化して、別のプロセスのgss_輸入_秒_文脈に通過されると2番目のプロセスで文脈を現役に戻すインタプロセストークンを作成します。 与えられた文脈のただ一つの具体化だけがいかなる時も、アクティブであるかもしれません。 エクスポートしているセキュリティ文脈にアクセスする文脈輸出業者によるその後の試みは失敗するでしょう。
The implementation may constrain the set of processes by which the interprocess token may be imported, either as a function of local security policy, or as a result of implementation decisions. For example, some implementations may constrain contexts to be passed only between processes that run under the same account, or which are part of the same process group.
実装はインタプロセストークンがローカルの安全保障政策の機能、または実装決定の結果、インポートされるかもしれないプロセスのセットを抑制するかもしれません。 例えば、いくつかの実装が、文脈が同じアカウントで実行されるか、同じプロセスグループの一部である唯一のプロセスの間で通過されるのを抑制するかもしれません。
The interprocess token may contain security-sensitive information (for example cryptographic keys). While mechanisms are encouraged to either avoid placing such sensitive information within interprocess tokens, or to encrypt the token before returning it to the application, in a typical object-library GSS-API implementation this may not be possible. Thus the application must take care to protect the interprocess token, and ensure that any process to which the token is transferred is trustworthy.
インタプロセストークンはセキュリティ機密情報(例えば、暗号のキー)を含むかもしれません。 メカニズムがインタプロセストークンの中にそのような機密情報を置くのを避けるか、またはそれをアプリケーションに返す前にトークンを暗号化するよう奨励される間、典型的な目的ライブラリGSS-API実行では、これは可能でないかもしれません。 したがって、アプリケーションは、インタプロセストークンを保護するために注意して、トークンがわたっているどんなプロセスも信頼できるのを確実にしなければなりません。
If creation of the interprocess token is successful, the implementation shall deallocate all process-wide resources associated with the security context, and set the context_handle to GSS_C_NO_CONTEXT. In the event of an error that makes it impossible to complete the export of the security context, the implementation must not return an interprocess token, and should strive to leave the security context referenced by the context_handle parameter untouched. If this is impossible, it is permissible for the implementation to delete the security context, providing it also sets the context_handle parameter to GSS_C_NO_CONTEXT.
If creation of the interprocess token is successful, the implementation shall deallocate all process-wide resources associated with the security context, and set the context_handle to GSS_C_NO_CONTEXT. In the event of an error that makes it impossible to complete the export of the security context, the implementation must not return an interprocess token, and should strive to leave the security context referenced by the context_handle parameter untouched. If this is impossible, it is permissible for the implementation to delete the security context, providing it also sets the context_handle parameter to GSS_C_NO_CONTEXT.
Wray Standards Track [Page 50] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 50] RFC 2744 GSS-API V2: C-bindings January 2000
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
context_handle gss_ctx_id_t, modify context handle identifying the context to transfer.
context_handle gss_ctx_id_t, modify context handle identifying the context to transfer.
interprocess_token buffer, opaque, modify token to be transferred to target process. Storage associated with this token must be freed by the application after use with a call to gss_release_buffer().
interprocess_token buffer, opaque, modify token to be transferred to target process. Storage associated with this token must be freed by the application after use with a call to gss_release_buffer().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_CONTEXT_EXPIRED The context has expired
GSS_S_CONTEXT_EXPIRED The context has expired
GSS_S_NO_CONTEXT The context was invalid
GSS_S_NO_CONTEXT The context was invalid
GSS_S_UNAVAILABLE The operation is not supported.
GSS_S_UNAVAILABLE The operation is not supported.
5.15. gss_get_mic
5.15. gss_get_mic
OM_uint32 gss_get_mic ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, gss_qop_t qop_req, const gss_buffer_t message_buffer, gss_buffer_t msg_token)
OM_uint32 gss_get_mic ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, gss_qop_t qop_req, const gss_buffer_t message_buffer, gss_buffer_t msg_token)
Purpose:
Purpose:
Generates a cryptographic MIC for the supplied message, and places the MIC in a token for transfer to the peer application. The qop_req parameter allows a choice between several cryptographic algorithms, if supported by the chosen mechanism.
Generates a cryptographic MIC for the supplied message, and places the MIC in a token for transfer to the peer application. The qop_req parameter allows a choice between several cryptographic algorithms, if supported by the chosen mechanism.
Since some application-level protocols may wish to use tokens emitted by gss_wrap() to provide "secure framing", implementations must support derivation of MICs from zero-length messages.
Since some application-level protocols may wish to use tokens emitted by gss_wrap() to provide "secure framing", implementations must support derivation of MICs from zero-length messages.
Wray Standards Track [Page 51] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 51] RFC 2744 GSS-API V2: C-bindings January 2000
Parameters:
Parameters:
minor_status Integer, modify Implementation specific status code.
minor_status Integer, modify Implementation specific status code.
context_handle gss_ctx_id_t, read identifies the context on which the message will be sent
context_handle gss_ctx_id_t, read identifies the context on which the message will be sent
qop_req gss_qop_t, read, optional Specifies requested quality of protection. Callers are encouraged, on portability grounds, to accept the default quality of protection offered by the chosen mechanism, which may be requested by specifying GSS_C_QOP_DEFAULT for this parameter. If an unsupported protection strength is requested, gss_get_mic will return a major_status of GSS_S_BAD_QOP.
qop_req gss_qop_t, read, optional Specifies requested quality of protection. Callers are encouraged, on portability grounds, to accept the default quality of protection offered by the chosen mechanism, which may be requested by specifying GSS_C_QOP_DEFAULT for this parameter. If an unsupported protection strength is requested, gss_get_mic will return a major_status of GSS_S_BAD_QOP.
message_buffer buffer, opaque, read message to be protected
message_buffer buffer, opaque, read message to be protected
msg_token buffer, opaque, modify buffer to receive token. The application must free storage associated with this buffer after use with a call to gss_release_buffer().
msg_token buffer, opaque, modify buffer to receive token. The application must free storage associated with this buffer after use with a call to gss_release_buffer().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_CONTEXT_EXPIRED The context has already expired
GSS_S_CONTEXT_EXPIRED The context has already expired
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S_BAD_QOP The specified QOP is not supported by the mechanism.
GSS_S_BAD_QOP The specified QOP is not supported by the mechanism.
5.16. gss_import_name
5.16. gss_import_name
OM_uint32 gss_import_name ( OM_uint32 *minor_status, const gss_buffer_t input_name_buffer, const gss_OID input_name_type, gss_name_t *output_name)
OM_uint32 gss_import_name ( OM_uint32 *minor_status, const gss_buffer_t input_name_buffer, const gss_OID input_name_type, gss_name_t *output_name)
Wray Standards Track [Page 52] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 52] RFC 2744 GSS-API V2: C-bindings January 2000
Purpose:
Purpose:
Convert a contiguous string name to internal form. In general, the internal name returned (via the <output_name> parameter) will not be an MN; the exception to this is if the <input_name_type> indicates that the contiguous string provided via the <input_name_buffer> parameter is of type GSS_C_NT_EXPORT_NAME, in which case the returned internal name will be an MN for the mechanism that exported the name.
Convert a contiguous string name to internal form. In general, the internal name returned (via the <output_name> parameter) will not be an MN; the exception to this is if the <input_name_type> indicates that the contiguous string provided via the <input_name_buffer> parameter is of type GSS_C_NT_EXPORT_NAME, in which case the returned internal name will be an MN for the mechanism that exported the name.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
input_name_buffer buffer, octet-string, read buffer containing contiguous string name to convert
input_name_buffer buffer, octet-string, read buffer containing contiguous string name to convert
input_name_type Object ID, read, optional Object ID specifying type of printable name. Applications may specify either GSS_C_NO_OID to use a mechanism-specific default printable syntax, or an OID recognized by the GSS-API implementation to name a specific namespace.
input_name_type Object ID, read, optional Object ID specifying type of printable name. Applications may specify either GSS_C_NO_OID to use a mechanism-specific default printable syntax, or an OID recognized by the GSS-API implementation to name a specific namespace.
output_name gss_name_t, modify returned name in internal form. Storage associated with this name must be freed by the application after use with a call to gss_release_name().
output_name gss_name_t, modify returned name in internal form. Storage associated with this name must be freed by the application after use with a call to gss_release_name().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
GSS_S_BAD_NAMETYPE The input_name_type was unrecognized
GSS_S_BAD_NAMETYPE The input_name_type was unrecognized
GSS_S_BAD_NAME The input_name parameter could not be interpreted as a name of the specified type
GSS_S_BAD_NAME The input_name parameter could not be interpreted as a name of the specified type
GSS_S_BAD_MECH The input name-type was GSS_C_NT_EXPORT_NAME, but the mechanism contained within the input-name is not supported
GSS_S_BAD_MECH The input name-type was GSS_C_NT_EXPORT_NAME, but the mechanism contained within the input-name is not supported
Wray Standards Track [Page 53] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 53] RFC 2744 GSS-API V2: C-bindings January 2000
5.17. gss_import_sec_context
5.17. gss_import_sec_context
OM_uint32 gss_import_sec_context ( OM_uint32 *minor_status, const gss_buffer_t interprocess_token, gss_ctx_id_t *context_handle)
OM_uint32 gss_import_sec_context ( OM_uint32 *minor_status, const gss_buffer_t interprocess_token, gss_ctx_id_t *context_handle)
Purpose:
Purpose:
Allows a process to import a security context established by another process. A given interprocess token may be imported only once. See gss_export_sec_context.
Allows a process to import a security context established by another process. A given interprocess token may be imported only once. See gss_export_sec_context.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code
minor_status Integer, modify Mechanism specific status code
interprocess_token buffer, opaque, modify token received from exporting process
interprocess_token buffer, opaque, modify token received from exporting process
context_handle gss_ctx_id_t, modify context handle of newly reactivated context. Resources associated with this context handle must be released by the application after use with a call to gss_delete_sec_context().
context_handle gss_ctx_id_t, modify context handle of newly reactivated context. Resources associated with this context handle must be released by the application after use with a call to gss_delete_sec_context().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion.
GSS_S_COMPLETE Successful completion.
GSS_S_NO_CONTEXT The token did not contain a valid context reference.
GSS_S_NO_CONTEXT The token did not contain a valid context reference.
GSS_S_DEFECTIVE_TOKEN The token was invalid.
GSS_S_DEFECTIVE_TOKEN The token was invalid.
GSS_S_UNAVAILABLE The operation is unavailable.
GSS_S_UNAVAILABLE The operation is unavailable.
GSS_S_UNAUTHORIZED Local policy prevents the import of this context by the current process.
GSS_S_UNAUTHORIZED Local policy prevents the import of this context by the current process.
5.18. gss_indicate_mechs
5.18. gss_indicate_mechs
OM_uint32 gss_indicate_mechs ( OM_uint32 *minor_status, gss_OID_set *mech_set)
OM_uint32 gss_indicate_mechs ( OM_uint32 *minor_status, gss_OID_set *mech_set)
Wray Standards Track [Page 54] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 54] RFC 2744 GSS-API V2: C-bindings January 2000
Purpose:
Purpose:
Allows an application to determine which underlying security mechanisms are available.
Allows an application to determine which underlying security mechanisms are available.
Parameters:
Parameters:
minor_status Integer, modify Mechanism specific status code.
minor_status Integer, modify Mechanism specific status code.
mech_set set of Object IDs, modify set of implementation-supported mechanisms. The returned gss_OID_set value will be a dynamically-allocated OID set, that should be released by the caller after use with a call to gss_release_oid_set().
mech_set set of Object IDs, modify set of implementation-supported mechanisms. The returned gss_OID_set value will be a dynamically-allocated OID set, that should be released by the caller after use with a call to gss_release_oid_set().
Function value: GSS status code
Function value: GSS status code
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful completion
5.19. gss_init_sec_context
5.19. gss_init_sec_context
OM_uint32 gss_init_sec_context ( OM_uint32 *minor_status, const gss_cred_id_t initiator_cred_handle, gss_ctx_id_t *context_handle,\ const gss_name_t target_name, const gss_OID mech_type, OM_uint32 req_flags, OM_uint32 time_req, const gss_channel_bindings_t input_chan_bindings, const gss_buffer_t input_token gss_OID *actual_mech_type, gss_buffer_t output_token, OM_uint32 *ret_flags, OM_uint32 *time_rec )
OM_uint32 gss_init_sec_context ( OM_uint32 *minor_status, const gss_cred_id_t initiator_cred_handle, gss_ctx_id_t *context_handle,\ const gss_name_t target_name, const gss_OID mech_type, OM_uint32 req_flags, OM_uint32 time_req, const gss_channel_bindings_t input_chan_bindings, const gss_buffer_t input_token gss_OID *actual_mech_type, gss_buffer_t output_token, OM_uint32 *ret_flags, OM_uint32 *time_rec )
Purpose:
Purpose:
Initiates the establishment of a security context between the application and a remote peer. Initially, the input_token parameter should be specified either as GSS_C_NO_BUFFER, or as a pointer to a gss_buffer_desc object whose length field contains the value zero. The routine may return a output_token which should be transferred to the peer application, where the peer application will present it to gss_accept_sec_context. If no token need be sent, gss_init_sec_context will indicate this by setting the length field
Initiates the establishment of a security context between the application and a remote peer. Initially, the input_token parameter should be specified either as GSS_C_NO_BUFFER, or as a pointer to a gss_buffer_desc object whose length field contains the value zero. The routine may return a output_token which should be transferred to the peer application, where the peer application will present it to gss_accept_sec_context. If no token need be sent, gss_init_sec_context will indicate this by setting the length field
Wray Standards Track [Page 55] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 55] RFC 2744 GSS-API V2: C-bindings January 2000
of the output_token argument to zero. To complete the context establishment, one or more reply tokens may be required from the peer application; if so, gss_init_sec_context will return a status containing the supplementary information bit GSS_S_CONTINUE_NEEDED. In this case, gss_init_sec_context should be called again when the reply token is received from the peer application, passing the reply token to gss_init_sec_context via the input_token parameters.
of the output_token argument to zero. To complete the context establishment, one or more reply tokens may be required from the peer application; if so, gss_init_sec_context will return a status containing the supplementary information bit GSS_S_CONTINUE_NEEDED. In this case, gss_init_sec_context should be called again when the reply token is received from the peer application, passing the reply token to gss_init_sec_context via the input_token parameters.
Portable applications should be constructed to use the token length and return status to determine whether a token needs to be sent or waited for. Thus a typical portable caller should always invoke gss_init_sec_context within a loop:
Portable applications should be constructed to use the token length and return status to determine whether a token needs to be sent or waited for. Thus a typical portable caller should always invoke gss_init_sec_context within a loop:
int context_established = 0; gss_ctx_id_t context_hdl = GSS_C_NO_CONTEXT; ... input_token->length = 0;
int context_established = 0; gss_ctx_id_t context_hdl = GSS_C_NO_CONTEXT; ... input_token->length = 0;
while (!context_established) { maj_stat = gss_init_sec_context(&min_stat, cred_hdl, &context_hdl, target_name, desired_mech, desired_services, desired_time, input_bindings, input_token, &actual_mech, output_token, &actual_services, &actual_time); if (GSS_ERROR(maj_stat)) { report_error(maj_stat, min_stat); };
while (!context_established) { maj_stat = gss_init_sec_context(&min_stat, cred_hdl, &context_hdl, target_name, desired_mech, desired_services, desired_time, input_bindings, input_token, &actual_mech, output_token, &actual_services, &actual_time); if (GSS_ERROR(maj_stat)) { report_error(maj_stat, min_stat); };
if (output_token->length != 0) { send_token_to_peer(output_token); gss_release_buffer(&min_stat, output_token) }; if (GSS_ERROR(maj_stat)) {
if (output_token->length != 0) { send_token_to_peer(output_token); gss_release_buffer(&min_stat, output_token) }; if (GSS_ERROR(maj_stat)) {
if (context_hdl != GSS_C_NO_CONTEXT) gss_delete_sec_context(&min_stat, &context_hdl, GSS_C_NO_BUFFER); break; };
if (context_hdl != GSS_C_NO_CONTEXT) gss_delete_sec_context(&min_stat, &context_hdl, GSS_C_NO_BUFFER); break; };
Wray Standards Track [Page 56] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 56] RFC 2744 GSS-API V2: C-bindings January 2000
if (maj_stat & GSS_S_CONTINUE_NEEDED) { receive_token_from_peer(input_token); } else { context_established = 1; }; };
if (maj_stat & GSS_S_CONTINUE_NEEDED) { receive_token_from_peer(input_token); } else { context_established = 1; }; };
Whenever the routine returns a major status that includes the value GSS_S_CONTINUE_NEEDED, the context is not fully established and the following restrictions apply to the output parameters:
Whenever the routine returns a major status that includes the value GSS_S_CONTINUE_NEEDED, the context is not fully established and the following restrictions apply to the output parameters:
The value returned via the time_rec parameter is undefined Unless the accompanying ret_flags parameter contains the bit GSS_C_PROT_READY_FLAG, indicating that per-message services may be applied in advance of a successful completion status, the value returned via the actual_mech_type parameter is undefined until the routine returns a major status value of GSS_S_COMPLETE.
The value returned via the time_rec parameter is undefined Unless the accompanying ret_flags parameter contains the bit GSS_C_PROT_READY_FLAG, indicating that per-message services may be applied in advance of a successful completion status, the value returned via the actual_mech_type parameter is undefined until the routine returns a major status value of GSS_S_COMPLETE.
The values of the GSS_C_DELEG_FLAG, GSS_C_MUTUAL_FLAG, GSS_C_REPLAY_FLAG, GSS_C_SEQUENCE_FLAG, GSS_C_CONF_FLAG, GSS_C_INTEG_FLAG and GSS_C_ANON_FLAG bits returned via the ret_flags parameter should contain the values that the implementation expects would be valid if context establishment were to succeed. In particular, if the application has requested a service such as delegation or anonymous authentication via the req_flags argument, and such a service is unavailable from the underlying mechanism, gss_init_sec_context should generate a token that will not provide the service, and indicate via the ret_flags argument that the service will not be supported. The application may choose to abort the context establishment by calling gss_delete_sec_context (if it cannot continue in the absence of the service), or it may choose to transmit the token and continue context establishment (if the service was merely desired but not mandatory).
The values of the GSS_C_DELEG_FLAG, GSS_C_MUTUAL_FLAG, GSS_C_REPLAY_FLAG, GSS_C_SEQUENCE_FLAG, GSS_C_CONF_FLAG, GSS_C_INTEG_FLAG and GSS_C_ANON_FLAG bits returned via the ret_flags parameter should contain the values that the implementation expects would be valid if context establishment were to succeed. In particular, if the application has requested a service such as delegation or anonymous authentication via the req_flags argument, and such a service is unavailable from the underlying mechanism, gss_init_sec_context should generate a token that will not provide the service, and indicate via the ret_flags argument that the service will not be supported. The application may choose to abort the context establishment by calling gss_delete_sec_context (if it cannot continue in the absence of the service), or it may choose to transmit the token and continue context establishment (if the service was merely desired but not mandatory).
The values of the GSS_C_PROT_READY_FLAG and GSS_C_TRANS_FLAG bits within ret_flags should indicate the actual state at the time gss_init_sec_context returns, whether or not the context is fully established.
The values of the GSS_C_PROT_READY_FLAG and GSS_C_TRANS_FLAG bits within ret_flags should indicate the actual state at the time gss_init_sec_context returns, whether or not the context is fully established.
GSS-API implementations that support per-message protection are encouraged to set the GSS_C_PROT_READY_FLAG in the final ret_flags returned to a caller (i.e. when accompanied by a GSS_S_COMPLETE status code). However, applications should not rely on this behavior as the flag was not defined in Version 1 of the GSS-API. Instead, applications should determine what per-message services are available after a successful context establishment according to the GSS_C_INTEG_FLAG and GSS_C_CONF_FLAG values.
GSS-API implementations that support per-message protection are encouraged to set the GSS_C_PROT_READY_FLAG in the final ret_flags returned to a caller (i.e. when accompanied by a GSS_S_COMPLETE status code). However, applications should not rely on this behavior as the flag was not defined in Version 1 of the GSS-API. Instead, applications should determine what per-message services are available after a successful context establishment according to the GSS_C_INTEG_FLAG and GSS_C_CONF_FLAG values.
Wray Standards Track [Page 57] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 57] RFC 2744 GSS-API V2: C-bindings January 2000
All other bits within the ret_flags argument should be set to zero.
All other bits within the ret_flags argument should be set to zero.
If the initial call of gss_init_sec_context() fails, the implementation should not create a context object, and should leave the value of the context_handle parameter set to GSS_C_NO_CONTEXT to indicate this. In the event of a failure on a subsequent call, the implementation is permitted to delete the "half-built" security context (in which case it should set the context_handle parameter to GSS_C_NO_CONTEXT), but the preferred behavior is to leave the security context untouched for the application to delete (using gss_delete_sec_context).
gss_イニット_秒_文脈()の初期の呼び出しが失敗するなら、実装は、文脈オブジェクトを作成するべきでなくて、_GSS_Cいいえ_CONTEXTにこれを示すように設定された文脈_ハンドルパラメタの値をままにするべきです。 その後の呼び出しでの失敗の場合、実装が「半分組立」のセキュリティ文脈を削除することが許可されますが(その場合、それは_GSS_Cいいえ_CONTEXTに文脈_ハンドルパラメタを設定するべきです)、都合のよい振舞いはセキュリティ文脈をアプリケーションが削除するように触れない状態でおく(_gssを使用して、_秒_文脈を削除してください)ことです。
During context establishment, the informational status bits GSS_S_OLD_TOKEN and GSS_S_DUPLICATE_TOKEN indicate fatal errors, and GSS-API mechanisms should always return them in association with a routine error of GSS_S_FAILURE. This requirement for pairing did not exist in version 1 of the GSS-API specification, so applications that wish to run over version 1 implementations must special-case these codes.
文脈設立の間、情報のステータスビット_GSS_S OLD_TOKENと_GSS_S DUPLICATE_TOKENは致命的な誤りを示します、そして、GSS-APIメカニズムはいつも_GSS_S FAILUREの通常の誤りと関連してそれらを返すはずです。 組み合わせのためのこの要件がGSS-API仕様のバージョン1に存在しなかったので、バージョン1実装をひきたがっているアプリケーションはこれらのコードを特別番組でケースに入れなければなりません。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
initiator_cred_handle gss_cred_id_t, read, optional handle for credentials claimed. Supply GSS_C_NO_CREDENTIAL to act as a default initiator principal. If no default initiator is defined, the function will return GSS_S_NO_CRED.
gss_信用_イド_tを扱って、読まれた創始者_信用_、要求された資格証明書のための任意のハンドル。 デフォルト創始者元本として務めるために_GSS_Cいいえ_CREDENTIALを供給してください。 デフォルト創始者が全く定義されないと、機能は_GSS_Sいいえ_CREDを返すでしょう。
context_handle gss_ctx_id_t, read/modify context handle for new context. Supply GSS_C_NO_CONTEXT for first call; use value returned by first call in continuation calls. Resources associated with this context-handle must be released by the application after use with a call to gss_delete_sec_context().
新しい関係のために文脈ハンドルを文脈_はgss_ctx_イド_tを扱って、読むか、または変更してください。 _GSS_Cいいえ_CONTEXTを準備ラッパに供給してください。 継続における準備ラッパで返された使用価値は呼びます。 gss_への呼び出しによる使用が_秒_文脈()を削除した後にアプリケーションでこの文脈ハンドルに関連しているリソースを発表しなければなりません。
target_name gss_name_t, read Name of target
_名前gss_名前_tを狙ってください、そして、目標のNameを読んでください。
mech_type OID, read, optional Object ID of desired mechanism. Supply GSS_C_NO_OID to obtain an implementation specific default
mech_はOIDをタイプして、読んで、任意のObjectは必要なメカニズムのIDです。 _GSS_Cいいえ_OIDを供給して、実装の特定のデフォルトを得てください。
Wray Standards Track [Page 58] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[58ページ]: C-結合2000年1月
req_flags bit-mask, read Contains various independent flags, each of which requests that the context support a specific service option. Symbolic names are provided for each flag, and the symbolic names corresponding to the required flags should be logically-ORed together to form the bit-mask value. The flags are:
req_はそれのそれぞれが、文脈が特定のサービスオプションをサポートするよう要求するContainsの様々な独立している旗が読まれたビットマスクに旗を揚げさせます。 各旗に英字名を提供して、必要な旗に対応する英字名が提供するべきである、論理的である、-、ORed、ビットマスク値を形成するために、一緒にいます。 旗は以下の通りです。
GSS_C_DELEG_FLAG True - Delegate credentials to remote peer False - Don't delegate
DELEG_FLAG True(リモート同輩Falseへの代表資格証明書)が代表として派遣しないGSS_C_
GSS_C_MUTUAL_FLAG True - Request that remote peer authenticate itself False - Authenticate self to remote peer only
GSS_C_MUTUAL_FLAG True--リモート同輩自身がFalseを認証するよう要求してください--リモート同輩だけに自己を認証してください。
GSS_C_REPLAY_FLAG True - Enable replay detection for messages protected with gss_wrap or gss_get_mic False - Don't attempt to detect replayed messages
gss_包装で保護されたメッセージのための再生検出を可能にしてください。さもないと、gss_が_mic Falseを手に入れるというREPLAY_FLAG Trueが検出するのを試みないGSS_C_はメッセージを再演しました。
GSS_C_SEQUENCE_FLAG True - Enable detection of out-of-sequence protected messages False - Don't attempt to detect out-of-sequence messages
GSS_C_SEQUENCE_FLAG True--順序が狂って保護されたメッセージFalseの検出を可能にしてください--順序が狂ってメッセージを検出するのを試みないでください。
GSS_C_CONF_FLAG True - Request that confidentiality service be made available (via gss_wrap) False - No per-message confidentiality service is required.
GSS_C_CONF_FLAG True--秘密性サービスを利用可能に(gss_包装を通した)虚偽でするよう要求してください--1メッセージあたりの秘密性サービスは全く必要ではありません。
GSS_C_INTEG_FLAG True - Request that integrity service be made available (via gss_wrap or gss_get_mic) False - No per-message integrity service is required.
GSS_C_INTEG_FLAG True--保全サービスを利用可能に(gss_包装かgss_を通して、_micを手に入れます)虚偽でするよう要求してください--1メッセージの保全あたりのサービスは全く必要ではありません。
Wray Standards Track [Page 59] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[59ページ]: C-結合2000年1月
GSS_C_ANON_FLAG True - Do not reveal the initiator's identity to the acceptor. False - Authenticate normally.
GSS_C_ANON_FLAG True--アクセプタへの創始者のアイデンティティを明らかにしないでください。 偽--通常、認証します。
time_req Integer, read, optional Desired number of seconds for which context should remain valid. Supply 0 to request a default validity period.
時間_req Integer、読んでください、そして、文脈がそうするべきである秒の任意のDesired番号は有効なままで残っています。 0を供給して、デフォルト有効期間を要求してください。
input_chan_bindings channel bindings, read, optional Application-specified bindings. Allows application to securely bind channel identification information to the security context. Specify GSS_C_NO_CHANNEL_BINDINGS if channel bindings are not used.
_結合を向けて、読まれたchan_結合、任意のApplicationによって指定された結合を入力してください。 アプリケーションがしっかりとセキュリティ文脈にチャネル識別情報を縛るのを許容します。 チャンネル結合が使用されていないなら、_GSS_Cいいえ_CHANNEL_BINDINGSを指定してください。
input_token buffer, opaque, read, optional (see text) Token received from peer application. Supply GSS_C_NO_BUFFER, or a pointer to a buffer containing the value GSS_C_EMPTY_BUFFER on initial call.
任意(テキストを見る)のトークンは、同輩アプリケーションから不明瞭な入力_トークンバッファが読んだのを受けました。 いいえ_BUFFER、または初期の呼び出しで_値GSS_CのEMPTY_BUFFERを入れてあるバッファへの指針をGSS_C_に供給してください。
actual_mech_type OID, modify, optional Actual mechanism used. The OID returned via this parameter will be a pointer to static storage that should be treated as read-only; In particular the application should not attempt to free it. Specify NULL if not required.
実際の_mech_タイプOID、変更、使用される任意のActualメカニズム。 このパラメタで返されたOIDは書き込み禁止として扱われるべきであるスタティックストレージへの指針になるでしょう。 特に、アプリケーションは、それを解放するのを試みるべきではありません。 必要でないなら、NULLを指定してください。
output_token buffer, opaque, modify token to be sent to peer application. If the length field of the returned buffer is zero, no token need be sent to the peer application. Storage associated with this buffer must be freed by the application after use with a call to gss_release_buffer().
出力_トークンバッファ、不透明なものは同輩アプリケーションに送られるトークンを変更します。 返されたバッファの長さの分野がゼロであるなら、トークンを全く同輩アプリケーションに送る必要はありません。 使用の後に呼び出しでアプリケーションでgss_リリース_バッファ()にこのバッファに関連しているストレージを解放しなければなりません。
ret_flags bit-mask, modify, optional Contains various independent flags, each of which indicates that the context supports a specific service option. Specify NULL if not required. Symbolic names are provided for each flag, and the symbolic names corresponding to the required flags should be logically-ANDed with the ret_flags value to test whether a given option is supported by the context. The flags are:
_旗のビットマスクを浸水させてください、変更、任意のContains様々な独立している旗。それのそれぞれが、文脈が特定のサービスオプションをサポートするのを示します。 必要でないなら、NULLを指定してください。 各旗に英字名を提供して、必要な旗に対応する英字名が提供するべきである、論理的である、-、ANDed、旗が与えられたオプションが文脈で後押しされているか否かに関係なく、テストするために評価する_を浸水させてください。 旗は以下の通りです。
Wray Standards Track [Page 60] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[60ページ]: C-結合2000年1月
GSS_C_DELEG_FLAG True - Credentials were delegated to the remote peer False - No credentials were delegated
GSS_C_DELEG_FLAG True--リモート同輩Falseへ資格証明書を代表として派遣しました--資格証明書を全く代表として派遣しませんでした。
GSS_C_MUTUAL_FLAG True - The remote peer has authenticated itself. False - Remote peer has not authenticated itself.
GSS_C_MUTUAL_FLAG True--リモート同輩はそれ自体を認証しました。 虚偽で、リモート同輩はそれ自体を認証していません。
GSS_C_REPLAY_FLAG True - replay of protected messages will be detected False - replayed messages will not be detected
GSS_C_REPLAY_FLAG True--保護されたメッセージの再生は検出されたFalseになるでしょう--再演されたメッセージは検出されないでしょう。
GSS_C_SEQUENCE_FLAG True - out-of-sequence protected messages will be detected False - out-of-sequence messages will not be detected
GSS_C_SEQUENCE_FLAG True--順序が狂って保護されたメッセージは検出されたFalseになるでしょう--順序が狂ってメッセージは検出されないでしょう。
GSS_C_CONF_FLAG True - Confidentiality service may be invoked by calling gss_wrap routine False - No confidentiality service (via gss_wrap) available. gss_wrap will provide message encapsulation, data-origin authentication and integrity services only.
GSS_C_CONF_FLAG True--、gss_包装を通常のFalseと呼ぶことによって、秘密性サービスは呼び出されるかもしれません--利用可能などんな秘密性サービス(gss_包装を通した)も、gss_包装はメッセージカプセル化、データ発生源認証、および保全サービスだけを提供しないでしょう。
GSS_C_INTEG_FLAG True - Integrity service may be invoked by calling either gss_get_mic or gss_wrap routines. False - Per-message integrity service unavailable.
GSS_C_INTEG_FLAG True--_が_micを手に入れるgssかgss_包装ルーチンのどちらかと呼ぶことによって、保全サービスは呼び出されるかもしれません。 偽--入手できない1メッセージの保全あたりのサービス。
GSS_C_ANON_FLAG True - The initiator's identity has not been revealed, and will not be revealed if any emitted token is passed to the acceptor. False - The initiator's identity has been or will be authenticated normally.
GSS_C_ANON_FLAG True--創始者のアイデンティティは、明らかにされていなくて、また何か放たれたトークンがアクセプタに通過されると、明らかにされないでしょう。 虚偽で、創始者のアイデンティティがあったか、または通常、認証されるでしょう。
GSS_C_PROT_READY_FLAG
GSS_Cの_のPROTの_の持ち合わせの_旗
Wray Standards Track [Page 61] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[61ページ]: C-結合2000年1月
True - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available for use if the accompanying major status return value is either GSS_S_COMPLETE or GSS_S_CONTINUE_NEEDED. False - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available only if the accompanying major status return value is GSS_S_COMPLETE.
本当に、保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は付随の主要な状態リターン価値がGSS__S COMPLETEか_GSS_S CONTINUE_が必要としたどちらかなら使用に利用可能です。 保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は付随の主要な状態リターン価値がGSS_S_COMPLETEである場合にだけ虚偽で、利用可能です。
GSS_C_TRANS_FLAG True - The resultant security context may be transferred to other processes via a call to gss_export_sec_context(). False - The security context is not transferable.
GSS_C_TRANS_FLAG True--gss_輸出_秒_文脈()への呼び出しで結果のセキュリティ関係を他のプロセスに移すかもしれません。 セキュリティ文脈は虚偽で、移転可能ではありません。
All other bits should be set to zero.
他のすべてのビットがゼロに設定されるべきです。
time_rec Integer, modify, optional number of seconds for which the context will remain valid. If the implementation does not support context expiration, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required.
時間_rec Integer、変更、文脈が有効なままで残っている任意の秒数。 実装が文脈満了をサポートしないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_CONTINUE_NEEDED Indicates that a token from the peer application is required to complete the context, and that gss_init_sec_context must be called again with that token.
同輩アプリケーションからのトークンがIndicatesですが、CONTINUE_が必要としたGSS_S_が文脈を完成するのが必要であり、再びそのトークンでそのgss_イニット_秒_文脈を呼ばなければなりません。
GSS_S_DEFECTIVE_TOKEN Indicates that consistency checks performed on the input_token failed
_GSS_S DEFECTIVE_TOKEN Indicatesはチェックが失敗された入力_トークンに実行したその一貫性です。
GSS_S_DEFECTIVE_CREDENTIAL Indicates that consistency checks performed on the credential failed.
GSS_S、_一貫性チェックが資格証明書に実行したDEFECTIVE_CREDENTIAL Indicatesは失敗しました。
GSS_S_NO_CRED The supplied credentials were not valid for context initiation, or the credential handle did not reference any credentials.
__いいえ、CRED。GSS_S、文脈開始には、供給された資格証明書が有効でなかったか、または資格証明書ハンドルはどんな参照にもどんな資格証明書もしませんでした。
GSS_S_CREDENTIALS_EXPIRED The referenced credentials have expired
_GSS_S CREDENTIALS_EXPIREDは資格証明書が吐き出した参照箇所です。
Wray Standards Track [Page 62] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[62ページ]: C-結合2000年1月
GSS_S_BAD_BINDINGS The input_token contains different channel bindings to those specified via the input_chan_bindings parameter
_GSS_S BAD_BINDINGS、入力_トークンは入力_chan_結合パラメタで指定されたものに異なったチャンネル結合を含んでいます。
GSS_S_BAD_SIG The input_token contains an invalid MIC, or a MIC that could not be verified
GSS_S_BAD_SIG、入力_トークンは無効のMIC、または確かめることができなかったMICを含んでいます。
GSS_S_OLD_TOKEN The input_token was too old. This is a fatal error during context establishment
_GSS_S OLD_TOKEN、入力_トークンは古過ぎました。 文脈設立の間、これは致命的な誤りです。
GSS_S_DUPLICATE_TOKEN The input_token is valid, but is a duplicate of a token already processed. This is a fatal error during context establishment.
_GSS_S DUPLICATE_TOKEN、入力_トークンは、有効ですが、既に処理されたトークンの写しです。 文脈設立の間、これは致命的な誤りです。
GSS_S_NO_CONTEXT Indicates that the supplied context handle did not refer to a valid context
_供給された文脈が扱ういいえ_CONTEXT IndicatesがそうするGSS_Sは有効な文脈を示しません。
GSS_S_BAD_NAMETYPE The provided target_name parameter contained an invalid or unsupported type of name
_GSS_S BAD_NAMETYPE、パラメタという提供された目標_名前は無効の、または、サポートされないタイプの名前を含みました。
GSS_S_BAD_NAME The provided target_name parameter was ill-formed.
_GSS_S BAD_NAME、パラメタという提供された目標_名前は不適格でした。
GSS_S_BAD_MECH The specified mechanism is not supported by the provided credential, or is unrecognized by the implementation.
_GSS_S BAD_MECH、指定されたメカニズムは、提供された資格証明書によってサポートされないか、または実装で認識されていません。
5.20. gss_inquire_context
5.20. gss_は_文脈について問い合わせます。
OM_uint32 gss_inquire_context ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, OM_uint32 *lifetime_rec, gss_OID *mech_type, OM_uint32 *ctx_flags, int *locally_initiated, int *open )
OM_uint32 gss_は_文脈について問い合わせます。(OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、gss_名前_t*src_名、gss_名前_t*targ_名、OM_uint32*生涯_rec、gss_OID*mech_タイプ、OM_uint32*ctx_は弛んで、int*は局所的に開始された_です、int*戸外)
Purpose:
目的:
Obtains information about a security context. The caller must already have obtained a handle that refers to the context, although the context need not be fully established.
セキュリティ文脈の情報を得ます。 訪問者は既に文脈を示すハンドルを入手したに違いありません、文脈が完全に確立されなければならないというわけではありませんが。
Wray Standards Track [Page 63] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[63ページ]: C-結合2000年1月
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read A handle that refers to the security context.
文脈_ハンドルgss_ctx_イド_tセキュリティ文脈を示すAハンドルが読まれて。
src_name gss_name_t, modify, optional The name of the context initiator. If the context was established using anonymous authentication, and if the application invoking gss_inquire_context is the context acceptor, an anonymous name will be returned. Storage associated with this name must be freed by the application after use with a call to gss_release_name(). Specify NULL if not required.
src_名前gss_名前_t、変更、任意である、文脈創始者の名前。 _関係が匿名の認証を使用するのにおいて確立していて、gss_を呼び出すアプリケーションが問い合わせるなら文脈が文脈アクセプタであるなら、匿名の名前を返すでしょう。 使用の後に呼び出しでアプリケーションでgss_リリース_名()にこの名前に関連しているストレージを解放しなければなりません。 必要でないなら、NULLを指定してください。
targ_name gss_name_t, modify, optional The name of the context acceptor. Storage associated with this name must be freed by the application after use with a call to gss_release_name(). If the context acceptor did not authenticate itself, and if the initiator did not specify a target name in its call to gss_init_sec_context(), the value GSS_C_NO_NAME will be returned. Specify NULL if not required.
targ_名前gss_名前_t、変更、任意である、文脈アクセプタの名前。 使用の後に呼び出しでアプリケーションでgss_リリース_名()にこの名前に関連している格納を解放しなければなりません。 創始者がgss_イニット_秒_文脈()に呼び出しにおける目標名を指定しなかったなら文脈アクセプタがそれ自体を認証しなかったなら、値GSS_Cの_です_NAMEが全く返されない。 必要でないなら、NULLを指定してください。
lifetime_rec Integer, modify, optional The number of seconds for which the context will remain valid. If the context has expired, this parameter will be set to zero. If the implementation does not support context expiration, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required.
生涯_rec Integer、変更、任意である、文脈が有効なままで残っている秒数。 文脈が期限が切れたなら、このパラメタはゼロに設定されるでしょう。 実現が文脈満了を支持しないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
mech_type gss_OID, modify, optional The security mechanism providing the context. The returned OID will be a pointer to static storage that should be treated as read-only by the application; in particular the application should not attempt to free it. Specify NULL if not required.
mech_タイプgss_OID、変更、任意である、文脈を提供するセキュリティー対策。 返されたOIDはアプリケーションで書き込み禁止として扱われるべきであるスタティックストレージへのポインタになるでしょう。 特に、アプリケーションは、それを解放するのを試みるべきではありません。 必要でないなら、NULLを指定してください。
Wray Standards Track [Page 64] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[64ページ]: C-結合2000年1月
ctx_flags bit-mask, modify, optional Contains various independent flags, each of which indicates that the context supports (or is expected to support, if ctx_open is false) a specific service option. If not needed, specify NULL. Symbolic names are provided for each flag, and the symbolic names corresponding to the required flags should be logically-ANDed with the ret_flags value to test whether a given option is supported by the context. The flags are:
ctx_がビットマスクに旗を揚げさせる、変更、任意のContains様々な独立している旗。それのそれぞれが、文脈が特定のサービスオプションをサポートするのを(または、支持するために、ctx_戸外が偽であるなら、期待しています)示します。 必要でないなら、NULLを指定してください。 各旗に英字名を提供して、必要な旗に対応する英字名が提供するべきである、論理的である、-、ANDed、旗が与えられたオプションが文脈で後押しされているか否かに関係なく、テストするために評価する_を浸水させてください。 旗は以下の通りです。
GSS_C_DELEG_FLAG True - Credentials were delegated from the initiator to the acceptor. False - No credentials were delegated
GSS_C_DELEG_FLAG True--創始者からアクセプタまで信任状を代表として派遣しました。 虚偽で、信任状を全く代表として派遣しませんでした。
GSS_C_MUTUAL_FLAG True - The acceptor was authenticated to the initiator False - The acceptor did not authenticate itself.
GSS_C_MUTUAL_FLAG True--アクセプタは創始者Falseに認証されました--アクセプタはそれ自体を認証しませんでした。
GSS_C_REPLAY_FLAG True - replay of protected messages will be detected False - replayed messages will not be detected
GSS_C_REPLAY_FLAG True--保護されたメッセージの再生は検出されたFalseになるでしょう--再演されたメッセージは検出されないでしょう。
GSS_C_SEQUENCE_FLAG True - out-of-sequence protected messages will be detected False - out-of-sequence messages will not be detected
GSS_C_SEQUENCE_FLAG True--順序が狂って保護されたメッセージは検出されたFalseになるでしょう--順序が狂ってメッセージは検出されないでしょう。
GSS_C_CONF_FLAG True - Confidentiality service may be invoked by calling gss_wrap routine False - No confidentiality service (via gss_wrap) available. gss_wrap will provide message encapsulation, data-origin authentication and integrity services only.
GSS_C_CONF_FLAG True--、gss_包装を通常のFalseと呼ぶことによって、秘密性サービスは呼び出されるかもしれません--利用可能などんな秘密性サービス(gss_包装を通した)も、gss_包装はメッセージカプセル化、データ起源認証、および保全サービスだけを提供しないでしょう。
GSS_C_INTEG_FLAG True - Integrity service may be invoked by calling either gss_get_mic or gss_wrap routines.
GSS_C_INTEG_FLAG True--_が_micを手に入れるgssかgss_包装ルーチンのどちらかと呼ぶことによって、保全サービスは呼び出されるかもしれません。
Wray Standards Track [Page 65] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[65ページ]: C-結合2000年1月
False - Per-message integrity service unavailable.
偽--入手できない1メッセージの保全あたりのサービス。
GSS_C_ANON_FLAG True - The initiator's identity will not be revealed to the acceptor. The src_name parameter (if requested) contains an anonymous internal name. False - The initiator has been authenticated normally.
GSS_C_ANON_FLAG True--創始者のアイデンティティはアクセプタに明らかにされないでしょう。 src_名前パラメタ(要求されるなら)は匿名の内部名を含んでいます。 通常、虚偽で、創始者は認証されました。
GSS_C_PROT_READY_FLAG True - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available for use. False - Protection services (as specified by the states of the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available only if the context is fully established (i.e. if the open parameter is non-zero).
GSS_C_PROT_READY_FLAG True--保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は使用に利用可能です。 文脈が完全に確立される場合にだけ(すなわち、開いているパラメタが非ゼロであるなら)、保護サービス(_GSS_C CONF_FLAGと_GSS_C INTEG_FLAGの州によって指定されるように)は虚偽で、利用可能です。
GSS_C_TRANS_FLAG True - The resultant security context may be transferred to other processes via a call to gss_export_sec_context(). False - The security context is not transferable.
GSS_C_TRANS_FLAG True--gss_輸出_秒_文脈()への呼び出しで結果のセキュリティ関係を他の過程に移すかもしれません。 セキュリティ文脈は虚偽で、移転可能ではありません。
locally_initiated Boolean, modify Non-zero if the invoking application is the context initiator. Specify NULL if not required.
局所的に_がブールで開始されて、呼び出しアプリケーションが文脈創始者であるならNon-ゼロを変更してください。 必要でないなら、NULLを指定してください。
open Boolean, modify Non-zero if the context is fully established; Zero if a context-establishment token is expected from the peer application. Specify NULL if not required.
ブールで開いてください、そして、文脈が完全に確立されるなら、Non-ゼロを変更してください。 ゼロは文脈設立象徴であるなら同輩アプリケーションから期待されます。 必要でないなら、NULLを指定してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CONTEXT The referenced context could not be accessed.
__いいえ、CONTEXT。GSS_S、参照をつけられた文脈にアクセスできませんでした。
Wray Standards Track [Page 66] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[66ページ]: C-結合2000年1月
5.21. gss_inquire_cred
5.21. gss_は_信用について問い合わせます。
OM_uint32 gss_inquire_cred ( OM_uint32 *minor_status, const gss_cred_id_t cred_handle, gss_name_t *name, OM_uint32 *lifetime, gss_cred_usage_t *cred_usage, gss_OID_set *mechanisms )
OM_uint32 gss_は_信用について問い合わせます。(OM_uint32*小さい方の_状態、const gss_信用_イド_t信用_ハンドル、gss_名前_t*名、OM_uint32*生涯、gss_信用_用法_t*信用_用法、gss_OID_セット*メカニズム)
Purpose:
目的:
Obtains information about a credential.
信任状の情報を得ます。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
cred_handle gss_cred_id_t, read A handle that refers to the target credential. Specify GSS_C_NO_CREDENTIAL to inquire about the default initiator principal.
信用_ハンドルgss_信用_イド_t目標信任状を示すAハンドルが読まれて。 _GSS_Cいいえ_CREDENTIALを指定して、デフォルト創始者校長について問い合わせをしてください。
name gss_name_t, modify, optional The name whose identity the credential asserts. Storage associated with this name should be freed by the application after use with a call to gss_release_name(). Specify NULL if not required.
_名前_tとgssを命名してください、変更、任意である、信任状がアイデンティティについて断言する名前。 この名前に関連している格納は使用の後に呼び出しでアプリケーションでgss_リリース_名()に解放されるべきです。 必要でないなら、NULLを指定してください。
lifetime Integer, modify, optional The number of seconds for which the credential will remain valid. If the credential has expired, this parameter will be set to zero. If the implementation does not support credential expiration, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required.
生涯Integer、変更、任意である、信任状が有効なままで残っている秒数。 信任状が期限が切れたなら、このパラメタはゼロに設定されるでしょう。 実現が信任している満了を支持しないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
cred_usage gss_cred_usage_t, modify, optional How the credential may be used. One of the following: GSS_C_INITIATE GSS_C_ACCEPT GSS_C_BOTH Specify NULL if not required.
信用_用法gss_信用_用法_t、変更、任意のHow、信任状は使用されるかもしれません。 以下の1つ: _GSS_C INITIATE GSS_C_ACCEPT GSS_C_BOTH Specify NULLか必要です。
Wray Standards Track [Page 67] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[67ページ]: C-結合2000年1月
mechanisms gss_OID_set, modify, optional Set of mechanisms supported by the credential. Storage associated with this OID set must be freed by the application after use with a call to gss_release_oid_set(). Specify NULL if not required.
メカニズムgss_OID_がセットした、変更、信任状によってサポートされたメカニズムの任意のSet。 _gss_リリースoid_への呼び出しによる使用が()を設定した後にアプリケーションでこのOIDセットに関連している格納を解放しなければなりません。 必要でないなら、NULLを指定してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CRED The referenced credentials could not be accessed.
__いいえ、CRED。GSS_S、参照をつけられた信任状にアクセスできませんでした。
GSS_S_DEFECTIVE_CREDENTIAL The referenced credentials were invalid.
_GSS_S DEFECTIVE_CREDENTIAL、参照をつけられた信任状は無効でした。
GSS_S_CREDENTIALS_EXPIRED The referenced credentials have expired. If the lifetime parameter was not passed as NULL, it will be set to 0.
_GSS_S CREDENTIALS_EXPIRED、参照をつけられた信任状は期限が切れました。 生涯パラメタがNULLとして通過されなかったなら、それは0に設定されるでしょう。
5.22. gss_inquire_cred_by_mech
5.22. gss_は_mechで_信用_について問い合わせます。
OM_uint32 gss_inquire_cred_by_mech ( OM_uint32 *minor_status, const gss_cred_id_t cred_handle, const gss_OID mech_type, gss_name_t *name, OM_uint32 *initiator_lifetime, OM_uint32 *acceptor_lifetime, gss_cred_usage_t *cred_usage )
OM_uint32 gss_は_mechで_信用_について問い合わせます。(OM_uint32*小さい方の_状態、const gss_信用_イド_t信用_ハンドル、const gss_OID mech_タイプ、gss_名前_t*名、OM_uint32*創始者_生涯、OM_uint32*アクセプタ_生涯、gss_信用_用法_t*信用_用法)
Purpose:
目的:
Obtains per-mechanism information about a credential.
信任状の1メカニズムあたりの情報を得ます。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
cred_handle gss_cred_id_t, read A handle that refers to the target credential. Specify GSS_C_NO_CREDENTIAL to inquire about the default initiator principal.
信用_ハンドルgss_信用_イド_t目標信任状を示すAハンドルが読まれて。 _GSS_Cいいえ_CREDENTIALを指定して、デフォルト創始者校長について問い合わせをしてください。
mech_type gss_OID, read The mechanism for which information should be returned.
mech_タイプgss_OID、情報が返されるべきであるメカニズムを読んでください。
Wray Standards Track [Page 68] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[68ページ]: C-結合2000年1月
name gss_name_t, modify, optional The name whose identity the credential asserts. Storage associated with this name must be freed by the application after use with a call to gss_release_name(). Specify NULL if not required.
_名前_tとgssを命名してください、変更、任意である、信任状がアイデンティティについて断言する名前。 使用の後に呼び出しでアプリケーションでgss_リリース_名()にこの名前に関連している格納を解放しなければなりません。 必要でないなら、NULLを指定してください。
initiator_lifetime Integer, modify, optional The number of seconds for which the credential will remain capable of initiating security contexts under the specified mechanism. If the credential can no longer be used to initiate contexts, or if the credential usage for this mechanism is GSS_C_ACCEPT, this parameter will be set to zero. If the implementation does not support expiration of initiator credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required.
創始者_生涯Integer、変更、任意である、信任状が指定されたメカニズムの下でセキュリティ文脈を開始だったことできるままで残っている秒数。 文脈を開始するのにもう信任状を使用できないか、またはこのメカニズムのための信任している用法がGSS_C_ACCEPTであるなら、このパラメタはゼロに設定されるでしょう。 実現が創始者信任状の満了を支持しないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
acceptor_lifetime Integer, modify, optional The number of seconds for which the credential will remain capable of accepting security contexts under the specified mechanism. If the credential can no longer be used to accept contexts, or if the credential usage for this mechanism is GSS_C_INITIATE, this parameter will be set to zero.
アクセプタ_生涯Integer、変更、任意である、信任状が指定されたメカニズムの下にセキュリティ文脈を受け入れたことができるままで残っている秒数。 文脈を受け入れるのにもう信任状を使用できないか、またはこのメカニズムのための信任している用法がGSS_C_INITIATEであるなら、このパラメタはゼロに設定されるでしょう。
If the implementation does not support expiration of acceptor credentials, the value GSS_C_INDEFINITE will be returned. Specify NULL if not required.
実現がアクセプタ信任状の満了を支持しないと、値GSS_Cの_INDEFINITEを返すでしょう。 必要でないなら、NULLを指定してください。
cred_usage gss_cred_usage_t, modify, optional How the credential may be used with the specified mechanism. One of the following: GSS_C_INITIATE GSS_C_ACCEPT GSS_C_BOTH Specify NULL if not required.
信用_用法gss_信用_用法_t、変更、任意のHow、信任状は指定されたメカニズムと共に使用されるかもしれません。 以下の1つ: _GSS_C INITIATE GSS_C_ACCEPT GSS_C_BOTH Specify NULLか必要です。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CRED The referenced credentials could not be accessed.
__いいえ、CRED。GSS_S、参照をつけられた信任状にアクセスできませんでした。
GSS_S_DEFECTIVE_CREDENTIAL The referenced credentials were invalid.
_GSS_S DEFECTIVE_CREDENTIAL、参照をつけられた信任状は無効でした。
Wray Standards Track [Page 69] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[69ページ]: C-結合2000年1月
GSS_S_CREDENTIALS_EXPIRED The referenced credentials have expired. If the lifetime parameter was not passed as NULL, it will be set to 0.
_GSS_S CREDENTIALS_EXPIRED、参照をつけられた信任状は期限が切れました。 生涯パラメタがNULLとして通過されなかったなら、それは0に設定されるでしょう。
5.23. gss_inquire_mechs_for_name
5.23. gss_は_名前のために_mechs_について問い合わせます。
OM_uint32 gss_inquire_mechs_for_name ( OM_uint32 *minor_status, const gss_name_t input_name, gss_OID_set *mech_types )
OM_uint32 gss_は_名前のために_mechs_について問い合わせます。(OM_uint32*小さい方の_状態、const gss_名前_t入力_名、gss_OID_セット*mech_タイプ)
Purpose:
目的:
Returns the set of mechanisms supported by the GSS-API implementation that may be able to process the specified name.
メカニズムのセットが指定された名前を処理できるかもしれないGSS-API実行で支持したリターン。
Each mechanism returned will recognize at least one element within the name. It is permissible for this routine to be implemented within a mechanism-independent GSS-API layer, using the type information contained within the presented name, and based on registration information provided by individual mechanism implementations. This means that the returned mech_types set may indicate that a particular mechanism will understand the name when in fact it would refuse to accept the name as input to gss_canonicalize_name, gss_init_sec_context, gss_acquire_cred or gss_add_cred (due to some property of the specific name, as opposed to the name type). Thus this routine should be used only as a pre- filter for a call to a subsequent mechanism-specific routine.
返された各メカニズムは名前の中で少なくとも1つの要素を認識するでしょう。 このルーチンがメカニズムから独立しているGSS-API層の中で実行されるのは、許されています、提示された名前の中に含まれていて、個々のメカニズム実現で提供されたレジスト情報に基づくタイプ情報を使用して。 これが、タイプが設定する返されたmech_が、事実上、それが、__がcanonicalizeするgssに入力されて、名前、gss_イニット_秒_文脈、gss_が_信用を取得するとき名前を受け入れるのを拒否するだろうというとき、特定のメカニズムが名前を理解するのを示すかもしれないことを意味するか、またはgss_は_信用(タイプという名前と対照的に種名の何らかの特性による)を言い足します。 したがって、このルーチンは呼び出しに単にプレフィルタとしてその後のメカニズム特有のルーチンに使用されるべきです。
Parameters:
パラメタ:
minor_status Integer, modify Implementation specific status code.
小さい方の_状態Integer、Implementationの特定のステータスコードを変更してください。
input_name gss_name_t, read The name to which the inquiry relates.
_名前gss_名前_tを入力してください、そして、問い合せが関係する名前を読んでください。
mech_types gss_OID_set, modify Set of mechanisms that may support the specified name. The returned OID set must be freed by the caller after use with a call to gss_release_oid_set().
gss_OID_が設定したmech_タイプは指定された名前をサポートするかもしれないメカニズムのSetを変更してください。 _gss_リリースoid_への呼び出しによる使用が()を設定した後に訪問者は返されたOIDセットを解放しなければなりません。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_NAME The input_name parameter was ill-formed.
_GSS_S BAD_NAME、入力_名前パラメタは不適格でした。
Wray Standards Track [Page 70] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[70ページ]: C-結合2000年1月
GSS_S_BAD_NAMETYPE The input_name parameter contained an invalid or unsupported type of name
_GSS_S BAD_NAMETYPE、入力_名前パラメタは無効の、または、サポートされないタイプの名前を含みました。
5.24. gss_inquire_names_for_mech
5.24. gss_は_mechのために_名前_について問い合わせます。
OM_uint32 gss_inquire_names_for_mech ( OM_uint32 *minor_status, const gss_OID mechanism, gss_OID_set *name_types)
OM_uint32 gss_は_mechのために_名前_について問い合わせます。(OM_uint32*小さい方の_状態、const gss_OIDメカニズム、gss_OID_セット*名前_タイプ)
Purpose:
目的:
Returns the set of nametypes supported by the specified mechanism.
nametypesのセットが指定されたメカニズムでサポートしたリターン。
Parameters:
パラメタ:
minor_status Integer, modify Implementation specific status code.
小さい方の_状態Integer、Implementationの特定のステータスコードを変更してください。
mechanism gss_OID, read The mechanism to be interrogated.
メカニズムgss_OID、メカニズムを読んで、査問されてください。
name_types gss_OID_set, modify Set of name-types supported by the specified mechanism. The returned OID set must be freed by the application after use with a call to gss_release_oid_set().
OID_が設定したgss_と_タイプを命名してください、そして、指定されたメカニズムによってサポートされた名前タイプのSetを変更してください。 _gss_リリースoid_への呼び出しによる使用が()を設定した後にアプリケーションで返されたOIDセットを解放しなければなりません。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
5.25. gss_process_context_token
5.25. gss_プロセス_文脈_トークン
OM_uint32 gss_process_context_token ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, const gss_buffer_t token_buffer)
OM_uint32 gss_プロセス_文脈_トークン(OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、const gss_バッファ_tトークン_バッファ)
Purpose:
目的:
Provides a way to pass an asynchronous token to the security service. Most context-level tokens are emitted and processed synchronously by gss_init_sec_context and gss_accept_sec_context, and the application is informed as to whether further tokens are expected by the GSS_C_CONTINUE_NEEDED major status bit. Occasionally, a mechanism may need to emit a context-level token at a point when the peer entity is not expecting a token. For example, the initiator's final
非同期なトークンをセキュリティー・サービスに通過する方法を提供します。 ほとんどの文脈レベルトークンが、gss_イニット_秒_文脈によって同時放たれていて、処理されます、そして、gss_は_秒_文脈を受け入れます、そして、アプリケーションは、さらなるトークンが_GSS_C CONTINUE_によって予想されるかどうかに主要なステータスビットを必要とするので、知識があります。 時折、メカニズムは、同輩実体がトークンを予想していないとき、ポイントで文脈レベルトークンを放つ必要があるかもしれません。 例えば、創始者は最終的です。
Wray Standards Track [Page 71] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[71ページ]: C-結合2000年1月
call to gss_init_sec_context may emit a token and return a status of GSS_S_COMPLETE, but the acceptor's call to gss_accept_sec_context may fail. The acceptor's mechanism may wish to send a token containing an error indication to the initiator, but the initiator is not expecting a token at this point, believing that the context is fully established. Gss_process_context_token provides a way to pass such a token to the mechanism at any time.
gss_イニット_秒_文脈への呼び出しは、トークンを放って、_GSS_S COMPLETEの状態を返すかもしれませんが、gss_へのアクセプタの呼び出しは_文脈が失敗するかもしれない_秒を受け入れます。 アクセプタのメカニズムは創始者に誤り表示を含むトークンを送りたがっているかもしれませんが、創始者はここにトークンを予想していません、文脈が完全に確立されると信じていて。 Gss_プロセス_文脈_トークンはいつでもそのようなトークンをメカニズムに通過する方法を提供します。
Parameters:
パラメタ:
minor_status Integer, modify Implementation specific status code.
小さい方の_状態Integer、Implementationの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read context handle of context on which token is to be processed
文脈_ハンドルgss_ctx_イド_t処理されるかのどのトークンがことである文脈の文脈ハンドルが読まれて、
token_buffer buffer, opaque, read token to process
不明瞭なトークン_バッファバッファは、処理するためにトークンを読みました。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_DEFECTIVE_TOKEN Indicates that consistency checks performed on the token failed
_GSS_S DEFECTIVE_TOKEN Indicatesはチェックが失敗されたトークンに実行したその一貫性です。
GSS_S_NO_CONTEXT The context_handle did not refer to a valid context
GSS_S、_文脈_ハンドルがしたいいえ_CONTEXTは有効な文脈を示しません。
5.26. gss_release_buffer
5.26. gss_リリース_バッファ
OM_uint32 gss_release_buffer ( OM_uint32 *minor_status, gss_buffer_t buffer)
OM_uint32 gss_リリース_バッファ(OM_uint32*小さい方の_状態、gss_バッファ_tバッファ)
Purpose:
目的:
Free storage associated with a buffer. The storage must have been allocated by a GSS-API routine. In addition to freeing the associated storage, the routine will zero the length field in the descriptor to which the buffer parameter refers, and implementations are encouraged to additionally set the pointer field in the descriptor to NULL. Any buffer object returned by a GSS-API routine may be passed to gss_release_buffer (even if there is no storage associated with the buffer).
フリーストレージはバッファと交際しました。 GSS-APIルーチンでストレージを割り当てたに違いありません。 関連ストレージを解放することに加えて、ルーチンはバッファパラメタが参照される記述子の長さの分野のゼロに合うでしょう、そして、実装がさらに、NULLへの記述子に指針分野をはめ込むよう奨励されます。 GSS-APIルーチンで返されたどんなバッファオブジェクトもgss_リリース_バッファに渡されるかもしれません(バッファに関連しているどんなストレージもなくても)。
Wray Standards Track [Page 72] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[72ページ]: C-結合2000年1月
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
buffer buffer, modify The storage associated with the buffer will be deleted. The gss_buffer_desc object will not be freed, but its length field will be zeroed.
バッファをバッファリングしてください、そして、削除されるよりもみ皮製の意志に関連しているストレージを変更してください。 gss_バッファ_descオブジェクトは解放されないでしょうが、長さの分野のゼロは合わせられるでしょう。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
5.27. gss_release_cred
5.27. gss_リリース_信用
OM_uint32 gss_release_cred ( OM_uint32 *minor_status, gss_cred_id_t *cred_handle)
OM_uint32 gss_リリース_信用(OM_uint32*小さい方の_状態、gss_信用_イド_t*信用_ハンドル)
Purpose:
目的:
Informs GSS-API that the specified credential handle is no longer required by the application, and frees associated resources. Implementations are encouraged to set the cred_handle to GSS_C_NO_CREDENTIAL on successful completion of this call.
指定された資格証明ハンドルがもうアプリケーションで必要でなく、関連リソースを解放することをGSS-APIに知らせます。 実装がこの呼び出しの無事終了のときに_GSS_Cいいえ_CREDENTIALに信用_ハンドルを設定するよう奨励されます。
Parameters:
パラメタ:
cred_handle gss_cred_id_t, modify, optional Opaque handle identifying credential to be released. If GSS_C_NO_CREDENTIAL is supplied, the routine will complete successfully, but will do nothing.
信用_ハンドルgss_信用_イド_t、任意のOpaqueハンドルがリリースされるために資格証明書を特定して、変更します。 _いいえ_CREDENTIALが供給されるGSS_C、ルーチンがそうすると、首尾よく完成しますが、何もしないでしょう。
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CRED Credentials could not be accessed.
GSS_S_いいえ_CRED Credentialsにアクセスできませんでした。
Wray Standards Track [Page 73] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[73ページ]: C-結合2000年1月
5.28. gss_release_name
5.28. gss_リリース_名
OM_uint32 gss_release_name ( OM_uint32 *minor_status, gss_name_t *name)
OM_uint32 gss_リリース_名(OM_uint32*小さい方の_状態、gss_名前_t*名)
Purpose:
目的:
Free GSSAPI-allocated storage associated with an internal-form name. Implementations are encouraged to set the name to GSS_C_NO_NAME on successful completion of this call.
無料のGSSAPIによって割り当てられたストレージは内部のフォーム名と交際しました。 実装がこの呼び出しの無事終了のときに_GSS_Cいいえ_NAMEに名前を設定するよう奨励されます。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
name gss_name_t, modify The name to be deleted
_名前_tとgssを命名してください、そして、名前を変更して、削除されてください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_BAD_NAME The name parameter did not contain a valid name
GSS_S、_名前パラメタがしたBAD_NAMEは妥当な名前を含んでいません。
5.29. gss_release_oid_set
5.29. oid_が設定したgss_リリース_
OM_uint32 gss_release_oid_set ( OM_uint32 *minor_status, gss_OID_set *set)
OM_uint32 gss_リリース_oid_セット(OM_uint32*小さい方の_状態、OID_セット*が設定したgss_)
Purpose:
目的:
Free storage associated with a GSSAPI-generated gss_OID_set object. The set parameter must refer to an OID-set that was returned from a GSS-API routine. gss_release_oid_set() will free the storage associated with each individual member OID, the OID set's elements array, and the gss_OID_set_desc.
フリーストレージはGSSAPIが発生しているgss_OID_セットオブジェクトと交際しました。 セットパラメタはGSS-APIルーチンから返されたOID-セットについて言及しなければなりません。gss_リリース_oid_セット()はそれぞれの個人会員OIDに関連しているストレージを解放するでしょう、OIDセットの要素配列、そして、gss_OID_が_descを設定しました。
Implementations are encouraged to set the gss_OID_set parameter to GSS_C_NO_OID_SET on successful completion of this routine.
実装がこのルーチンの無事終了のときに_GSS_Cいいえ_OID_SETにgss_OID_セットパラメタを設定するよう奨励されます。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
Wray Standards Track [Page 74] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[74ページ]: C-結合2000年1月
set Set of Object IDs, modify The storage associated with the gss_OID_set will be deleted.
Object IDのSetを設定してください、そして、削除されるgss_OID_設定している意志に関連しているストレージを変更してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
5.30. gss_test_oid_set_member
5.30. gss_テスト_oid_セット_メンバー
OM_uint32 gss_test_oid_set_member ( OM_uint32 *minor_status, const gss_OID member, const gss_OID_set set, int *present)
OM_uint32 gss_テスト_oid_セット_メンバー(OM_uint32*小さい方の_状態、現在のconst gss_OIDメンバー(OID_セットが設定したconst gss_)int*)
Purpose:
目的:
Interrogate an Object Identifier set to determine whether a specified Object Identifier is a member. This routine is intended to be used with OID sets returned by gss_indicate_mechs(), gss_acquire_cred(), and gss_inquire_cred(), but will also work with user-generated sets.
Object Identifierセットについて査問して、指定されたObject Identifierがメンバーであるかどうか決定してください。 このルーチンは使用されて、OIDセットと共に、_mechs()が_が示すgssで戻っていて、gss_が_信用()を取得して、gss_が_信用()について問い合わせますが、また、ユーザが発生しているセットで働くということであることを意図します。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
member Object ID, read The object identifier whose presence is to be tested.
メンバーObject ID、存在がテストされることになっているオブジェクト識別子を読んでください。
set Set of Object ID, read The Object Identifier set.
Object IDのSetを設定してください、そして、Object Identifierセットを読んでください。
present Boolean, modify non-zero if the specified OID is a member of the set, zero if not.
プレゼントブールであり、まして、指定されたOIDがセットのメンバー、ゼロであるなら非ゼロを変更してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
Wray Standards Track [Page 75] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[75ページ]: C-結合2000年1月
5.31. gss_unwrap
5.31. gss_は開けられます。
OM_uint32 gss_unwrap ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, const gss_buffer_t input_message_buffer, gss_buffer_t output_message_buffer, int *conf_state, gss_qop_t *qop_state)
OM_uint32 gss_は開けられます。(OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、const gss_バッファ_t入力_メッセージ_バッファ、gss_バッファ_t出力_メッセージ_バッファ、int*conf_状態、gss_qop_t*qop_状態)
Purpose:
目的:
Converts a message previously protected by gss_wrap back to a usable form, verifying the embedded MIC. The conf_state parameter indicates whether the message was encrypted; the qop_state parameter indicates the strength of protection that was used to provide the confidentiality and integrity services.
埋め込まれたMICについて確かめて、メッセージが以前にgss_で保護した転向者は使用可能なフォームへの後部を包装します。 conf_州のパラメタは、メッセージが暗号化されたかどうかを示します。 qop_州のパラメタは秘密性と保全にサービスを提供するのに使用された保護の強さを示します。
Since some application-level protocols may wish to use tokens emitted by gss_wrap() to provide "secure framing", implementations must support the wrapping and unwrapping of zero-length messages.
いくつかのアプリケーションレベルプロトコルがgss_包装()によって放たれた、「安全な縁どり」を提供したトークンを使用したがっているかもしれないので、実装はゼロ・レングスメッセージをラッピングと開けることを支えなければなりません。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read Identifies the context on which the message arrived
文脈_はgss_ctx_イド_tを扱って、メッセージが到着した文脈をIdentifiesに読み込みました。
input_message_buffer buffer, opaque, read protected message
不明瞭な入力_メッセージ_バッファバッファは保護されたメッセージを読みました。
output_message_buffer buffer, opaque, modify Buffer to receive unwrapped message. Storage associated with this buffer must be freed by the application after use use with a call to gss_release_buffer().
出力_メッセージ_バッファバッファ、不透明なものは、開けられたメッセージを受け取るようにBufferを変更します。 使用が呼び出しと共に_リリース_バッファ()をgssに使用した後にアプリケーションでこのバッファに関連しているストレージを解放しなければなりません。
conf_state boolean, modify, optional Non-zero - Confidentiality and integrity protection were used Zero - Integrity service only was used Specify NULL if not required
conf_州の論理演算子、変更、秘密性と保全保護が中古のZeroであったという保全が修理する任意のNon-ゼロが、中古のSpecify NULLだけであったか必要です。
Wray Standards Track [Page 76] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[76ページ]: C-結合2000年1月
qop_state gss_qop_t, modify, optional Quality of protection provided. Specify NULL if not required
qop_州のgss_qop_t、変更、保護の任意のQualityは提供しました。 必要でないなら、NULLを指定してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_DEFECTIVE_TOKEN The token failed consistency checks
_GSS_S DEFECTIVE_TOKENはトークンの失敗した一貫性チェックです。
GSS_S_BAD_SIG The MIC was incorrect
GSS_S_BAD_SIG、MICは不正確でした。
GSS_S_DUPLICATE_TOKEN The token was valid, and contained a correct MIC for the message, but it had already been processed
_GSS_S DUPLICATE_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含みましたが、既にそれを処理してありました。
GSS_S_OLD_TOKEN The token was valid, and contained a correct MIC for the message, but it is too old to check for duplication.
_GSS_S OLD_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含みましたが、複製がないかどうかチェックするのは古過ぎます。
GSS_S_UNSEQ_TOKEN The token was valid, and contained a correct MIC for the message, but has been verified out of sequence; a later token has already been received.
_GSS_S UNSEQ_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含んでいますが、順序が狂って確かめられました。 既に後のトークンを受け取りました。
GSS_S_GAP_TOKEN The token was valid, and contained a correct MIC for the message, but has been verified out of sequence; an earlier expected token has not yet been received.
_GSS_S GAP_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含んでいますが、順序が狂って確かめられました。 以前の予想されたトークンはまだ受け取られていません。
GSS_S_CONTEXT_EXPIRED The context has already expired
_GSS_S CONTEXT_EXPIRED、文脈は既に期限が切れました。
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S、_文脈_ハンドルパラメタがしたいいえ_CONTEXTは有効な文脈を特定しません。
5.32. gss_verify_mic
5.32. gss_は_micについて確かめます。
OM_uint32 gss_verify_mic ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, const gss_buffer_t message_buffer, const gss_buffer_t token_buffer, gss_qop_t *qop_state)
OM_uint32 gss_は_micについて確かめます。(OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、const gss_バッファ_tメッセージ_バッファ、const gss_バッファ_tトークン_バッファ、gss_qop_t*qop_状態)
Wray Standards Track [Page 77] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[77ページ]: C-結合2000年1月
Purpose:
目的:
Verifies that a cryptographic MIC, contained in the token parameter, fits the supplied message. The qop_state parameter allows a message recipient to determine the strength of protection that was applied to the message.
暗号のトークンパラメタに含まれたMICが供給されたメッセージに合うことを確かめます。 qop_州のパラメタで、メッセージ受取人はメッセージに適用された保護の強さを測定できます。
Since some application-level protocols may wish to use tokens emitted by gss_wrap() to provide "secure framing", implementations must support the calculation and verification of MICs over zero-length messages.
いくつかのアプリケーションレベルプロトコルがgss_包装()によって放たれた、「安全な縁どり」を提供したトークンを使用したがっているかもしれないので、実装はゼロ・レングスメッセージの上でMICsの計算と検証をサポートしなければなりません。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read Identifies the context on which the message arrived
文脈_はgss_ctx_イド_tを扱って、メッセージが到着した文脈をIdentifiesに読み込みました。
message_buffer buffer, opaque, read Message to be verified
不明瞭なメッセージ_バッファバッファは、確かめられるためにMessageを読みました。
token_buffer buffer, opaque, read Token associated with message
不明瞭なトークン_バッファバッファはメッセージに関連しているTokenを読みました。
qop_state gss_qop_t, modify, optional quality of protection gained from MIC Specify NULL if not required
qop_州のgss_qop_t、変更、保護の任意の品質が、MIC Specify NULLから獲得するか、または必要です。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_DEFECTIVE_TOKEN The token failed consistency checks
_GSS_S DEFECTIVE_TOKENはトークンの失敗した一貫性チェックです。
GSS_S_BAD_SIG The MIC was incorrect
GSS_S_BAD_SIG、MICは不正確でした。
GSS_S_DUPLICATE_TOKEN The token was valid, and contained a correct MIC for the message, but it had already been processed
_GSS_S DUPLICATE_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含みましたが、既にそれを処理してありました。
GSS_S_OLD_TOKEN The token was valid, and contained a correct MIC for the message, but it is too old to check for duplication.
_GSS_S OLD_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含みましたが、複製がないかどうかチェックするのは古過ぎます。
Wray Standards Track [Page 78] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[78ページ]: C-結合2000年1月
GSS_S_UNSEQ_TOKEN The token was valid, and contained a correct MIC for the message, but has been verified out of sequence; a later token has already been received.
_GSS_S UNSEQ_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含んでいますが、順序が狂って確かめられました。 既に後のトークンを受け取りました。
GSS_S_GAP_TOKEN The token was valid, and contained a correct MIC for the message, but has been verified out of sequence; an earlier expected token has not yet been received.
_GSS_S GAP_TOKEN、トークンは、有効であり、メッセージのための正しいMICを含んでいますが、順序が狂って確かめられました。 以前の予想されたトークンはまだ受け取られていません。
GSS_S_CONTEXT_EXPIRED The context has already expired
_GSS_S CONTEXT_EXPIRED、文脈は既に期限が切れました。
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S、_文脈_ハンドルパラメタがしたいいえ_CONTEXTは有効な文脈を特定しません。
5.33. gss_wrap
5.33. gss_包装
OM_uint32 gss_wrap ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, int conf_req_flag, gss_qop_t qop_req const gss_buffer_t input_message_buffer, int *conf_state, gss_buffer_t output_message_buffer )
OM_uint32 gss_包装(OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、int conf_req_旗、gss_qop_t qop_req const gss_バッファ_t入力_メッセージ_バッファ、int*conf_状態、gss_バッファ_t出力_メッセージ_バッファ)
Purpose:
目的:
Attaches a cryptographic MIC and optionally encrypts the specified input_message. The output_message contains both the MIC and the message. The qop_req parameter allows a choice between several cryptographic algorithms, if supported by the chosen mechanism.
暗号のMICを取り付けて、任意に指定された入力_メッセージを暗号化します。 出力_メッセージはMICとメッセージの両方を含んでいます。 選ばれたメカニズムによってサポートされるなら、qop_reqパラメタはいくつかの暗号アルゴリズムの選択を許します。
Since some application-level protocols may wish to use tokens emitted by gss_wrap() to provide "secure framing", implementations must support the wrapping of zero-length messages.
いくつかのアプリケーションレベルプロトコルがgss_包装()によって放たれた、「安全な縁どり」を提供したトークンを使用したがっているかもしれないので、実装はゼロ・レングスメッセージのラッピングを支えなければなりません。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code.
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read Identifies the context on which the message will be sent
文脈_はgss_ctx_イド_tを扱って、メッセージが送られる文脈をIdentifiesに読み込みました。
Wray Standards Track [Page 79] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[79ページ]: C-結合2000年1月
conf_req_flag boolean, read Non-zero - Both confidentiality and integrity services are requested Zero - Only integrity service is requested
Non-ゼロは、conf_req_が論理演算子に旗を揚げさせると読みます--秘密性と保全サービスの両方が要求されたZeroです--保全サービスだけが要求されています。
qop_req gss_qop_t, read, optional Specifies required quality of protection. A mechanism-specific default may be requested by setting qop_req to GSS_C_QOP_DEFAULT. If an unsupported protection strength is requested, gss_wrap will return a major_status of GSS_S_BAD_QOP.
qop_req gss_qop_t、読まれて、任意のSpecifiesは保護の品質を必要としました。 メカニズム特有のデフォルトは、_GSS_C QOP_DEFAULTにqop_reqを設定することによって、要求されているかもしれません。 サポートされない保護の強さが要求されると、gss_包装は_GSS_S BAD_QOPの主要な_状態を返すでしょう。
input_message_buffer buffer, opaque, read Message to be protected
不明瞭な入力_メッセージ_バッファバッファは、保護されるためにMessageを読みました。
conf_state boolean, modify, optional Non-zero - Confidentiality, data origin authentication and integrity services have been applied Zero - Integrity and data origin services only has been applied. Specify NULL if not required
conf_州の論理演算子、変更、任意のNon-ゼロ--秘密性、データ起源認証、および保全サービスは適用されたZeroです--保全とデータ起源サービスは適用されるだけでした。 必要でないなら、NULLを指定してください。
output_message_buffer buffer, opaque, modify Buffer to receive protected message. Storage associated with this message must be freed by the application after use with a call to gss_release_buffer().
出力_メッセージ_バッファバッファ、不透明なものは、保護されたメッセージを受け取るようにBufferを変更します。 使用の後に呼び出しでアプリケーションでgss_リリース_バッファ()にこのメッセージに関連している格納を解放しなければなりません。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_CONTEXT_EXPIRED The context has already expired
_GSS_S CONTEXT_EXPIRED、文脈は既に期限が切れました。
GSS_S_NO_CONTEXT The context_handle parameter did not identify a valid context
GSS_S、_文脈_ハンドルパラメタがしたいいえ_CONTEXTは有効な文脈を特定しません。
GSS_S_BAD_QOP The specified QOP is not supported by the mechanism.
_GSS_S BAD_QOPの指定されたQOPはメカニズムによって支持されません。
Wray Standards Track [Page 80] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[80ページ]: C-結合2000年1月
5.34. gss_wrap_size_limit
5.34. gss_包装_サイズ_限界
OM_uint32 gss_wrap_size_limit ( OM_uint32 *minor_status, const gss_ctx_id_t context_handle, int conf_req_flag, gss_qop_t qop_req, OM_uint32 req_output_size, OM_uint32 *max_input_size)
OM_uint32 gss_包装_サイズ_限界(gss_qop_t qop_req、OM_uint32*小さい方の_状態、const gss_ctx_イド_t文脈_ハンドル、int conf_req_は弛んで、OM_uint32 req_は_サイズ、OM_uint32*最大_入力_サイズを出力しました)
Purpose:
目的:
Allows an application to determine the maximum message size that, if presented to gss_wrap with the same conf_req_flag and qop_req parameters, will result in an output token containing no more than req_output_size bytes.
アプリケーションが同じconf_req_旗とqop_reqパラメタがあるgss_包装に提示されるならreq_出力_サイズバイトだけを含む出力象徴をもたらす最大のメッセージサイズを決定するのを許容します。
This call is intended for use by applications that communicate over protocols that impose a maximum message size. It enables the application to fragment messages prior to applying protection.
この呼び出しは使用のために最大のメッセージサイズを課すプロトコルの上で伝えるアプリケーションで意図します。 それは、保護を適用する前にアプリケーションがメッセージを断片化するのを可能にします。
GSS-API implementations are recommended but not required to detect invalid QOP values when gss_wrap_size_limit() is called. This routine guarantees only a maximum message size, not the availability of specific QOP values for message protection.
GSS-API実行は、推薦されますが、gss_包装_サイズ_限界()が呼ばれるとき、無効のQOP値を検出するのに必要ではありません。 このルーチンはメッセージ保護のために特定のQOP値の有用性ではなく、最大のメッセージサイズだけを保証します。
Successful completion of this call does not guarantee that gss_wrap will be able to protect a message of length max_input_size bytes, since this ability may depend on the availability of system resources at the time that gss_wrap is called. However, if the implementation itself imposes an upper limit on the length of messages that may be processed by gss_wrap, the implementation should not return a value via max_input_bytes that is greater than this length.
この呼び出しの無事終了は、gss_包装が長さの最大_入力_サイズバイトに関するメッセージを保護できるのを保証しません、この能力がgss_包装が呼ばれる時にシステム資源の有用性によるかもしれないので。 しかしながら、実現自体がgss_包装によって処理されるかもしれないメッセージの長さに上限を課すなら、実現はこの長さより大きい最大_入力_バイトで値を返すべきではありません。
Parameters:
パラメタ:
minor_status Integer, modify Mechanism specific status code
小さい方の_状態Integer、Mechanismの特定のステータスコードを変更してください。
context_handle gss_ctx_id_t, read A handle that refers to the security over which the messages will be sent.
文脈_ハンドルgss_ctx_イド_tメッセージが送られるセキュリティについて言及するAハンドルが読まれて。
conf_req_flag Boolean, read Indicates whether gss_wrap will be asked to apply confidentiality protection in
conf_req_旗のブールであり、gss_包装が秘密性保護を中に適用するように頼まれるか否かに関係なく、Indicatesを読んでください。
Wray Standards Track [Page 81] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[81ページ]: C-結合2000年1月
addition to integrity protection. See the routine description for gss_wrap for more details.
保全保護への添加。 その他の詳細に関してgss_包装のための通常の記述を見てください。
qop_req gss_qop_t, read Indicates the level of protection that gss_wrap will be asked to provide. See the routine description for gss_wrap for more details.
qop_req gss_qop_t、gss_包装が提供するように頼まれる保護のレベルをIndicatesに読み込んでください。 その他の詳細に関してgss_包装のための通常の記述を見てください。
req_output_size Integer, read The desired maximum size for tokens emitted by gss_wrap.
req_出力_サイズInteger、gss_包装によって放たれた象徴のために必要な最大サイズを読んでください。
max_input_size Integer, modify The maximum input message size that may be presented to gss_wrap in order to guarantee that the emitted token shall be no larger than req_output_size bytes.
_入力_サイズIntegerに最大限にしてください、そして、放たれた象徴がreq_が_サイズバイトを出力したほど、より大きくならないのを保証するためにgss_包装に提示されるかもしれない最大の入力メッセージサイズを変更してください。
Function value: GSS status code
機能値: GSSステータスコード
GSS_S_COMPLETE Successful completion
GSS_S_COMPLETE Successful完成
GSS_S_NO_CONTEXT The referenced context could not be accessed.
__いいえ、CONTEXT。GSS_S、参照をつけられた文脈にアクセスできませんでした。
GSS_S_CONTEXT_EXPIRED The context has expired.
_GSS_S CONTEXT_EXPIRED、文脈は期限が切れました。
GSS_S_BAD_QOP The specified QOP is not supported by the mechanism.
_GSS_S BAD_QOPの指定されたQOPはメカニズムによって支持されません。
6. Security Considerations
6. セキュリティ問題
This document specifies a service interface for security facilities and services; as such, security considerations appear throughout the specification. Nonetheless, it is appropriate to summarize certain specific points relevant to GSS-API implementors and calling applications. Usage of the GSS-API interface does not in itself provide security services or assurance; instead, these attributes are dependent on the underlying mechanism(s) which support a GSS-API implementation. Callers must be attentive to the requests made to GSS-API calls and to the status indicators returned by GSS-API, as these specify the security service characteristics which GSS-API will provide. When the interprocess context transfer facility is used, appropriate local controls should be applied to constrain access to interprocess tokens and to the sensitive data which they contain.
このドキュメントはセキュリティ施設とサービスにサービスインタフェースを指定します。 そういうものとして、セキュリティ問題は仕様中に現れます。 それにもかかわらず、GSS-API作成者と呼ぶアプリケーションに関連しているある一定の特定のポイントをまとめるのは適切です。 GSS-APIインタフェースの用法は本来セキュリティー・サービスか保証を提供しません。 代わりに、これらの属性はGSS-API実行を支持する発症機序に依存しています。 訪問者はGSS-API呼び出しにされた要求と、そして、GSS-APIによって返された自動運転表示灯に注意深いに違いありません、これらがGSS-APIが提供するセキュリティー・サービスの特性を指定するとき。 インタプロセス文脈中継設備が使用されているとき、適切な現場制御は、インタプロセス象徴と、そして、極秘データへのそれらが含むアクセスを抑制するために適用されるべきです。
Wray Standards Track [Page 82] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[82ページ]: C-結合2000年1月
Appendix A. GSS-API C header file gssapi.h
付録A. GSS-API Cヘッダーファイルgssapi.h
C-language GSS-API implementations should include a copy of the following header-file.
C言語GSS-API実行は以下のヘッダーファイルのコピーを含むべきです。
#ifndef GSSAPI_H_ #define GSSAPI_H_
#ifndef GSSAPI_H_ #はGSSAPI_H_を定義します。
/* * First, include stddef.h to get size_t defined. */ #include <stddef.h>
サイズ_tを定義させる最初に、/**インクルードstddef.h。 */#は<stddef.h>を含んでいます。
/* * If the platform supports the xom.h header file, it should be * included here. */ #include <xom.h>
/は**プラットホームであるならxom.hヘッダーファイルをサポートして、それはここに含まれていた*であるべきです。 */#は<xom.h>を含んでいます。
/* * Now define the three implementation-dependent types. */ typedef <platform-specific> gss_ctx_id_t; typedef <platform-specific> gss_cred_id_t; typedef <platform-specific> gss_name_t;
/**は現在、3つの実現依存するタイプを定義します。 */typedef<プラットホーム特有の>gss_ctx_イド_t。 typedef<プラットホーム特有の>gss_信用_イド_t。 typedefの<のプラットホーム特有の>gss_名前_t。
/* * The following type must be defined as the smallest natural * unsigned integer supported by the platform that has at least * 32 bits of precision. */ typedef <platform-specific> gss_uint32;
自然な*符号のない整数が少なくとも精度の*32ビットを持っているプラットホームで支持した中で最も小さいものと以下がタイプする/**を定義しなければなりません。 */typedef<プラットホーム特有の>gss_uint32。
#ifdef OM_STRING /* * We have included the xom.h header file. Verify that OM_uint32 * is defined correctly. */
#私たちが持っているifdefオミ_STRING/**はxom.hヘッダーファイルを含んでいました。 OM_uint32*が正しく定義されることを確かめてください。 */
#if sizeof(gss_uint32) != sizeof(OM_uint32) #error Incompatible definition of OM_uint32 from xom.h #endif
#sizeof(gss_uint32!)がxom.h#endifからOM_uint32のsizeof(OM_uint32)#誤りIncompatible定義と等しいなら
typedef OM_object_identifier gss_OID_desc, *gss_OID;
typedef OM_物の_識別子gss_OID_desc、*gss_OID。
Wray Standards Track [Page 83] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[83ページ]: C-結合2000年1月
#else
#ほか
/* * We can't use X/Open definitions, so roll our own. */
/、**私たちがX/Open定義を使用できないので、私たち自身のを回転させてください。 */
typedef gss_uint32 OM_uint32;
typedef gss_uint32 OM_uint32。
typedef struct gss_OID_desc_struct { OM_uint32 length; void *elements; } gss_OID_desc, *gss_OID;
typedef struct gss_OID_desc_struct OM_uint32の長さ; 空間*要素;のgss_OID_desc、*gss_OID。
#endif
#endif
typedef struct gss_OID_set_desc_struct { size_t count; gss_OID elements; } gss_OID_set_desc, *gss_OID_set;
*typedef struct gss_OID_は_desc_structサイズ_tカウント; gss_OID要素;gss_OID_セット_descを設定して、gss_OID_はセットしました。
typedef struct gss_buffer_desc_struct { size_t length; void *value; } gss_buffer_desc, *gss_buffer_t;
_typedef struct gss_バッファ_desc_structサイズ_tの長さ; 空間*値;のgss_バッファdesc、*gss_バッファ_t。
typedef struct gss_channel_bindings_struct { OM_uint32 initiator_addrtype; gss_buffer_desc initiator_address; OM_uint32 acceptor_addrtype; gss_buffer_desc acceptor_address; gss_buffer_desc application_data; } *gss_channel_bindings_t;
typedef struct gss_チャンネル_結合_struct OM_uint32創始者_addrtype; gss_バッファ_desc創始者_アドレス; OM_uint32アクセプタ_addrtype; gss_バッファ_descアクセプタ_アドレス; gss_バッファ_descアプリケーション_データ;*gss_チャンネル_結合_t。
/* * For now, define a QOP-type as an OM_uint32 */ typedef OM_uint32 gss_qop_t;
/、**当分、OM_uint32*/typedef OM_uint32 gss_qop_tとQOP-タイプを定義してください。
typedef int gss_cred_usage_t;
typedef int gss_信用_用法_t。
/* * Flag bits for context-level services. */
文脈レベルサービスのための/**フラグビット。 */
Wray Standards Track [Page 84] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[84ページ]: C-結合2000年1月
#define GSS_C_DELEG_FLAG 1 #define GSS_C_MUTUAL_FLAG 2 #define GSS_C_REPLAY_FLAG 4 #define GSS_C_SEQUENCE_FLAG 8 #define GSS_C_CONF_FLAG 16 #define GSS_C_INTEG_FLAG 32 #define GSS_C_ANON_FLAG 64 #define GSS_C_PROT_READY_FLAG 128 #define GSS_C_TRANS_FLAG 256
#定義..C..定義..定義..C..定義..定義..C..定義..定義..C..定義..定義
/* * Credential usage options */ #define GSS_C_BOTH 0 #define GSS_C_INITIATE 1 #define GSS_C_ACCEPT 2
/**信任している用法オプション*/#、がBOTH0#、が定義するGSS_C_を定義する、GSS_C_INITIATE1#、はGSS_C_ACCEPT2を定義します。
/* * Status code types for gss_display_status */ #define GSS_C_GSS_CODE 1 #define GSS_C_MECH_CODE 2
gss_表示_状態*/#、がGSS_C_GSS_CODE1#、を定義するので、/**ステータスコードタイプはGSS_C_MECH_CODE2を定義します。
/* * The constant definitions for channel-bindings address families */ #define GSS_C_AF_UNSPEC 0 #define GSS_C_AF_LOCAL 1 #define GSS_C_AF_INET 2 #define GSS_C_AF_IMPLINK 3 #define GSS_C_AF_PUP 4 #define GSS_C_AF_CHAOS 5 #define GSS_C_AF_NS 6 #define GSS_C_AF_NBS 7 #define GSS_C_AF_ECMA 8 #define GSS_C_AF_DATAKIT 9 #define GSS_C_AF_CCITT 10 #define GSS_C_AF_SNA 11 #define GSS_C_AF_DECnet 12 #define GSS_C_AF_DLI 13 #define GSS_C_AF_LAT 14 #define GSS_C_AF_HYLINK 15 #define GSS_C_AF_APPLETALK 16 #define GSS_C_AF_BSC 17 #define GSS_C_AF_DSS 18 #define GSS_C_AF_OSI 19 #define GSS_C_AF_X25 21
一定..定義..チャンネル..結合..アドレス..家族..定義..C..定義..C..定義..定義..C..定義..定義..C..定義..定義..C..定義..定義; C..定義..C..CCITT..定義..C..SNA..定義..定義..C..定義..定義..C..定義..定義..C..定義..C..DSS..定義..C..定義
Wray Standards Track [Page 85] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[85ページ]: C-結合2000年1月
#define GSS_C_AF_NULLADDR 255
#GSS_C_AF_NULLADDR255を定義してください。
/* * Various Null values */ #define GSS_C_NO_NAME ((gss_name_t) 0) #define GSS_C_NO_BUFFER ((gss_buffer_t) 0) #define GSS_C_NO_OID ((gss_OID) 0) #define GSS_C_NO_OID_SET ((gss_OID_set) 0) #define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0) #define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0) #define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0) #define GSS_C_EMPTY_BUFFER {0, NULL}
/* * Various Null values */ #define GSS_C_NO_NAME ((gss_name_t) 0) #define GSS_C_NO_BUFFER ((gss_buffer_t) 0) #define GSS_C_NO_OID ((gss_OID) 0) #define GSS_C_NO_OID_SET ((gss_OID_set) 0) #define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0) #define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0) #define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0) #define GSS_C_EMPTY_BUFFER 0、ヌル
/* * Some alternate names for a couple of the above * values. These are defined for V1 compatibility. */ #define GSS_C_NULL_OID GSS_C_NO_OID #define GSS_C_NULL_OID_SET GSS_C_NO_OID_SET
2、3の上の*のためのいくつかの別名称が評価する/**。 これらはV1の互換性のために定義されます。 */#はGSS_C_ヌル_OID_セットGSS_C_いいえ_OID_設定していた状態でOID#が定義するGSS_C_ヌル_OID GSS_C_ノー_を定義します。
/* * Define the default Quality of Protection for per-message * services. Note that an implementation that offers multiple * levels of QOP may define GSS_C_QOP_DEFAULT to be either zero * (as done here) to mean "default protection", or to a specific * explicit QOP value. However, a value of 0 should always be * interpreted by a GSS-API implementation as a request for the * default protection level. */ #define GSS_C_QOP_DEFAULT 0
/**は1メッセージあたりの*サービスのためにProtectionのデフォルトQualityを定義します。 QOPの複数の*レベルを提供する実現が*でなくなるように意地悪な「デフォルト保護」、または、特定の*明白なQOP価値と_GSS_C QOP_DEFAULTを定義するかもしれないことに(ここでするように)注意してください。 しかしながら、いつも0の値は*デフォルト保護レベルを求める要求としてGSS-API実行で解釈された*であるべきです。 */#はGSS_C_QOP_デフォルト0を定義します。
/* * Expiration time of 2^32-1 seconds means infinite lifetime for a * credential or security context */ #define GSS_C_INDEFINITE 0xfffffffful
2^32-1秒の/**満了時間は、*信任状かセキュリティ文脈*/#のために無限の生涯_GSS_C INDEFINITE 0xffffffffulを定義するように意味します。
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {10, (void *)"\x2a\x86\x48\x86\xf7\x12" * "\x01\x02\x01\x01"}, * corresponding to an object-identifier value of * {iso(1) member-body(2) United States(840) mit(113554) * infosys(1) gssapi(2) generic(1) user_name(1)}. The constant * GSS_C_NT_USER_NAME should be initialized to point * to that gss_OID_desc.
**実現は値*を含む*gss_OID_desc物のためにスタティックストレージを予約しなければなりません。「/、10、(空間*)」 \x2a\x86\x48\x86\xf7\x12"*」 \x01\x02\x01\x01"、**の物識別子値に対応している、iso(1)メンバーボディー(2)合衆国(840)mit(113554)*infosys(1) gssapi(2)ジェネリック(1)ユーザ_は(1)を命名します。 C_NT_USER_NAMEが初期化されるべきである定数*GSS_はそのgss_OID_descに*を向けます。
Wray Standards Track [Page 86] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[86ページ]: C-結合2000年1月
*/ extern gss_OID GSS_C_NT_USER_NAME;
*/通いの人gss_OID GSS_C_NT_USER_NAME。
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {10, (void *)"\x2a\x86\x48\x86\xf7\x12" * "\x01\x02\x01\x02"}, * corresponding to an object-identifier value of * {iso(1) member-body(2) United States(840) mit(113554) * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}. * The constant GSS_C_NT_MACHINE_UID_NAME should be * initialized to point to that gss_OID_desc. */ extern gss_OID GSS_C_NT_MACHINE_UID_NAME;
**実現は値*を含む*gss_OID_desc物のためにスタティックストレージを予約しなければなりません。「/、10、(空間*)」 \x2a\x86\x48\x86\xf7\x12"*」 \x01\x02\x01\x02"、**の物識別子値に対応している、iso(1)メンバーボディー(2)合衆国(840)mit(113554)*infosys(1) gssapi(2)ジェネリック(1)マシン_uid_は(2)を命名します。 * 一定の__GSS_C NT_MACHINE UID_NAMEはそのgss_OID_descを示すために初期化された*であるべきです。 */通いの人gss_OID GSS_C_NT_MACHINE_UID_NAME。
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {10, (void *)"\x2a\x86\x48\x86\xf7\x12" * "\x01\x02\x01\x03"}, * corresponding to an object-identifier value of * {iso(1) member-body(2) United States(840) mit(113554) * infosys(1) gssapi(2) generic(1) string_uid_name(3)}. * The constant GSS_C_NT_STRING_UID_NAME should be * initialized to point to that gss_OID_desc. */ extern gss_OID GSS_C_NT_STRING_UID_NAME;
**実現は値*を含む*gss_OID_desc物のためにスタティックストレージを予約しなければなりません。「/、10、(空間*)」 \x2a\x86\x48\x86\xf7\x12"*」 \x01\x02\x01\x03"、**の物識別子値に対応している、iso(1)メンバーボディー(2)合衆国(840)mit(113554)*infosys(1) gssapi(2)ジェネリック(1)ストリング_uid_は(3)を命名します。 * 一定の__GSS_C NT_STRING UID_NAMEはそのgss_OID_descを示すために初期化された*であるべきです。 */通いの人gss_OID GSS_C_NT_STRING_UID_NAME。
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {6, (void *)"\x2b\x06\x01\x05\x06\x02"}, * corresponding to an object-identifier value of * {iso(1) org(3) dod(6) internet(1) security(5) * nametypes(6) gss-host-based-services(2)). The constant * GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point * to that gss_OID_desc. This is a deprecated OID value, and * implementations wishing to support hostbased-service names * should instead use the GSS_C_NT_HOSTBASED_SERVICE OID, * defined below, to identify such names; * GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym * for GSS_C_NT_HOSTBASED_SERVICE when presented as an input * parameter, but should not be emitted by GSS-API * implementations */ extern gss_OID GSS_C_NT_HOSTBASED_SERVICE_X;
「値*を含んでいて、実現がそうしなければならない/**が*gss_OID_desc物のためにスタティックストレージを予約する、6、(空間*)」 \x2b\x06\x01\x05\x06\x02"、*の物識別子値に対応する*、iso(1) org(3) dod(6)のインターネット(1)セキュリティの(5)*nametypes(6) gssホストベースのサービス(2)); 一定の*GSS_C_NT_HOSTBASED_SERVICE_Xは、そのgss_OID_descに*を向けるために初期化されるべきです。これは推奨しないOID値です、そして、hostbasedサービス名*を支持したがっている*実現は代わりに_GSS_C NT_HOSTBASED_SERVICE OIDを使用するべきです、*そのような名前を特定するために以下で定義されて; *GSS_C_NT_HOSTBASED_SERVICE_Xによる受け入れて、GSS-API*実現*/通いの人gss_OID GSS_C_NT_HOSTBASED_SERVICE_Xが_GSS_C NT_HOSTBASED_SERVICEしかし、入力*パラメタとして提示されると同義語*を放つはずがないということであるはずです。
Wray Standards Track [Page 87] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[87ページ]: C-結合2000年1月
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {10, (void *)"\x2a\x86\x48\x86\xf7\x12" * "\x01\x02\x01\x04"}, corresponding to an * object-identifier value of {iso(1) member-body(2) * Unites States(840) mit(113554) infosys(1) gssapi(2) * generic(1) service_name(4)}. The constant * GSS_C_NT_HOSTBASED_SERVICE should be initialized * to point to that gss_OID_desc. */ extern gss_OID GSS_C_NT_HOSTBASED_SERVICE;
「値*を含んでいて、実現がそうしなければならない/**が*gss_OID_desc物のためにスタティックストレージを予約する、10、(空間*)」 \x2a\x86\x48\x86\xf7\x12"*」 \x01\x02\x01\x04"、*が結合させる(2)が、(840)mit(113554) infosys(1) gssapi(2)*ジェネリック(1)サービス_が(4)と命名すると述べるiso(1)メンバーボディーの*物識別子価値に対応しています。 _一定の*GSS_C NT_HOSTBASED_SERVICEはそうであるべきです。初期化されて、それに指す*は_OID_descをgssします。 */通いの人gss_OID GSS_C_NT_HOSTBASED_SERVICE。
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {6, (void *)"\x2b\x06%%BODY%%1\x05\x06\x03"}, * corresponding to an object identifier value of * {1(iso), 3(org), 6(dod), 1(internet), 5(security), * 6(nametypes), 3(gss-anonymous-name)}. The constant * and GSS_C_NT_ANONYMOUS should be initialized to point * to that gss_OID_desc. */ extern gss_OID GSS_C_NT_ANONYMOUS;
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {6, (void *)"\x2b\x06%%BODY%%1\x05\x06\x03"}, * corresponding to an object identifier value of * {1(iso), 3(org), 6(dod), 1(internet), 5(security), * 6(nametypes), 3(gss-anonymous-name)}. The constant * and GSS_C_NT_ANONYMOUS should be initialized to point * to that gss_OID_desc. */ extern gss_OID GSS_C_NT_ANONYMOUS;
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {6, (void *)"\x2b\x06\x01\x05\x06\x04"}, * corresponding to an object-identifier value of * {1(iso), 3(org), 6(dod), 1(internet), 5(security), * 6(nametypes), 4(gss-api-exported-name)}. The constant * GSS_C_NT_EXPORT_NAME should be initialized to point * to that gss_OID_desc. */ extern gss_OID GSS_C_NT_EXPORT_NAME;
/* * The implementation must reserve static storage for a * gss_OID_desc object containing the value * {6, (void *)"\x2b\x06\x01\x05\x06\x04"}, * corresponding to an object-identifier value of * {1(iso), 3(org), 6(dod), 1(internet), 5(security), * 6(nametypes), 4(gss-api-exported-name)}. The constant * GSS_C_NT_EXPORT_NAME should be initialized to point * to that gss_OID_desc. */ extern gss_OID GSS_C_NT_EXPORT_NAME;
/* Major status codes */
/* Major status codes */
#define GSS_S_COMPLETE 0
#define GSS_S_COMPLETE 0
/* * Some "helper" definitions to make the status code macros obvious. */ #define GSS_C_CALLING_ERROR_OFFSET 24 #define GSS_C_ROUTINE_ERROR_OFFSET 16
/* * Some "helper" definitions to make the status code macros obvious. */ #define GSS_C_CALLING_ERROR_OFFSET 24 #define GSS_C_ROUTINE_ERROR_OFFSET 16
Wray Standards Track [Page 88] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 88] RFC 2744 GSS-API V2: C-bindings January 2000
#define GSS_C_SUPPLEMENTARY_OFFSET 0 #define GSS_C_CALLING_ERROR_MASK 0377ul #define GSS_C_ROUTINE_ERROR_MASK 0377ul #define GSS_C_SUPPLEMENTARY_MASK 0177777ul
#define GSS_C_SUPPLEMENTARY_OFFSET 0 #define GSS_C_CALLING_ERROR_MASK 0377ul #define GSS_C_ROUTINE_ERROR_MASK 0377ul #define GSS_C_SUPPLEMENTARY_MASK 0177777ul
/* * The macros that test status codes for error conditions. * Note that the GSS_ERROR() macro has changed slightly from * the V1 GSS-API so that it now evaluates its argument * only once. */ #define GSS_CALLING_ERROR(x) \ (x & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET)) #define GSS_ROUTINE_ERROR(x) \ (x & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)) #define GSS_SUPPLEMENTARY_INFO(x) \ (x & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET)) #define GSS_ERROR(x) \ (x & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \ (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))
/* * The macros that test status codes for error conditions. * Note that the GSS_ERROR() macro has changed slightly from * the V1 GSS-API so that it now evaluates its argument * only once. */ #define GSS_CALLING_ERROR(x) \ (x & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET)) #define GSS_ROUTINE_ERROR(x) \ (x & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)) #define GSS_SUPPLEMENTARY_INFO(x) \ (x & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET)) #define GSS_ERROR(x) \ (x & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \ (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))
/* * Now the actual status code definitions */
/* * Now the actual status code definitions */
/* * Calling errors:
/* * Calling errors:
*/ #define GSS_S_CALL_INACCESSIBLE_READ \ (1ul << GSS_C_CALLING_ERROR_OFFSET) #define GSS_S_CALL_INACCESSIBLE_WRITE \ (2ul << GSS_C_CALLING_ERROR_OFFSET) #define GSS_S_CALL_BAD_STRUCTURE \ (3ul << GSS_C_CALLING_ERROR_OFFSET)
*/ #define GSS_S_CALL_INACCESSIBLE_READ \ (1ul << GSS_C_CALLING_ERROR_OFFSET) #define GSS_S_CALL_INACCESSIBLE_WRITE \ (2ul << GSS_C_CALLING_ERROR_OFFSET) #define GSS_S_CALL_BAD_STRUCTURE \ (3ul << GSS_C_CALLING_ERROR_OFFSET)
/* * Routine errors: */ #define GSS_S_BAD_MECH (1ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_NAME (2ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_NAMETYPE (3ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_BINDINGS (4ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_STATUS (5ul <<
/* * Routine errors: */ #define GSS_S_BAD_MECH (1ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_NAME (2ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_NAMETYPE (3ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_BINDINGS (4ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_STATUS (5ul <<
Wray Standards Track [Page 89] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 89] RFC 2744 GSS-API V2: C-bindings January 2000
GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_SIG (6ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_MIC GSS_S_BAD_SIG #define GSS_S_NO_CRED (7ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_NO_CONTEXT (8ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DEFECTIVE_TOKEN (9ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DEFECTIVE_CREDENTIAL (10ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_CREDENTIALS_EXPIRED (11ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_CONTEXT_EXPIRED (12ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_FAILURE (13ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_QOP (14ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_UNAUTHORIZED (15ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_UNAVAILABLE (16ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DUPLICATE_ELEMENT (17ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_NAME_NOT_MN (18ul << GSS_C_ROUTINE_ERROR_OFFSET)
GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_SIG (6ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_MIC GSS_S_BAD_SIG #define GSS_S_NO_CRED (7ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_NO_CONTEXT (8ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DEFECTIVE_TOKEN (9ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DEFECTIVE_CREDENTIAL (10ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_CREDENTIALS_EXPIRED (11ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_CONTEXT_EXPIRED (12ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_FAILURE (13ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_BAD_QOP (14ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_UNAUTHORIZED (15ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_UNAVAILABLE (16ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_DUPLICATE_ELEMENT (17ul << GSS_C_ROUTINE_ERROR_OFFSET) #define GSS_S_NAME_NOT_MN (18ul << GSS_C_ROUTINE_ERROR_OFFSET)
/* * Supplementary info bits: */ #define GSS_S_CONTINUE_NEEDED \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 0)) #define GSS_S_DUPLICATE_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 1)) #define GSS_S_OLD_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 2)) #define GSS_S_UNSEQ_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 3)) #define GSS_S_GAP_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
/* * Supplementary info bits: */ #define GSS_S_CONTINUE_NEEDED \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 0)) #define GSS_S_DUPLICATE_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 1)) #define GSS_S_OLD_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 2)) #define GSS_S_UNSEQ_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 3)) #define GSS_S_GAP_TOKEN \ (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
/* * Finally, function prototypes for the GSS-API routines. */
/* * Finally, function prototypes for the GSS-API routines. */
Wray Standards Track [Page 90] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 90] RFC 2744 GSS-API V2: C-bindings January 2000
OM_uint32 gss_acquire_cred (OM_uint32 , /* minor_status */ const gss_name_t, /* desired_name */ OM_uint32, /* time_req */ const gss_OID_set, /* desired_mechs */ gss_cred_usage_t, /* cred_usage */ gss_cred_id_t , /* output_cred_handle */ gss_OID_set , /* actual_mechs */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_acquire_cred (OM_uint32 , /* minor_status */ const gss_name_t, /* desired_name */ OM_uint32, /* time_req */ const gss_OID_set, /* desired_mechs */ gss_cred_usage_t, /* cred_usage */ gss_cred_id_t , /* output_cred_handle */ gss_OID_set , /* actual_mechs */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_release_cred (OM_uint32 , /* minor_status */ gss_cred_id_t * /* cred_handle */ );
OM_uint32 gss_release_cred (OM_uint32 , /* minor_status */ gss_cred_id_t * /* cred_handle */ );
OM_uint32 gss_init_sec_context (OM_uint32 , /* minor_status */ const gss_cred_id_t, /* initiator_cred_handle */ gss_ctx_id_t , /* context_handle */ const gss_name_t, /* target_name */ const gss_OID, /* mech_type */ OM_uint32, /* req_flags */ OM_uint32, /* time_req */ const gss_channel_bindings_t, /* input_chan_bindings */ const gss_buffer_t, /* input_token */ gss_OID , /* actual_mech_type */ gss_buffer_t, /* output_token */ OM_uint32 , /* ret_flags */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_init_sec_context (OM_uint32 , /* minor_status */ const gss_cred_id_t, /* initiator_cred_handle */ gss_ctx_id_t , /* context_handle */ const gss_name_t, /* target_name */ const gss_OID, /* mech_type */ OM_uint32, /* req_flags */ OM_uint32, /* time_req */ const gss_channel_bindings_t, /* input_chan_bindings */ const gss_buffer_t, /* input_token */ gss_OID , /* actual_mech_type */ gss_buffer_t, /* output_token */ OM_uint32 , /* ret_flags */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_accept_sec_context (OM_uint32 , /* minor_status */ gss_ctx_id_t , /* context_handle */ const gss_cred_id_t, /* acceptor_cred_handle */ const gss_buffer_t, /* input_token_buffer */ const gss_channel_bindings_t, /* input_chan_bindings */ gss_name_t , /* src_name */ gss_OID , /* mech_type */ gss_buffer_t, /* output_token */ OM_uint32 , /* ret_flags */ OM_uint32 , /* time_rec */ gss_cred_id_t * /* delegated_cred_handle */ );
OM_uint32 gss_accept_sec_context (OM_uint32 , /* minor_status */ gss_ctx_id_t , /* context_handle */ const gss_cred_id_t, /* acceptor_cred_handle */ const gss_buffer_t, /* input_token_buffer */ const gss_channel_bindings_t, /* input_chan_bindings */ gss_name_t , /* src_name */ gss_OID , /* mech_type */ gss_buffer_t, /* output_token */ OM_uint32 , /* ret_flags */ OM_uint32 , /* time_rec */ gss_cred_id_t * /* delegated_cred_handle */ );
Wray Standards Track [Page 91] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 91] RFC 2744 GSS-API V2: C-bindings January 2000
OM_uint32 gss_process_context_token (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t /* token_buffer */ );
OM_uint32 gss_process_context_token (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t /* token_buffer */ );
OM_uint32 gss_delete_sec_context (OM_uint32 , /* minor_status */ gss_ctx_id_t , /* context_handle */ gss_buffer_t /* output_token */ );
OM_uint32 gss_delete_sec_context (OM_uint32 , /* minor_status */ gss_ctx_id_t , /* context_handle */ gss_buffer_t /* output_token */ );
OM_uint32 gss_context_time (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_context_time (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ OM_uint32 * /* time_rec */ );
OM_uint32 gss_get_mic (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ gss_qop_t, /* qop_req */ const gss_buffer_t, /* message_buffer */ gss_buffer_t /* message_token */ );
OM_uint32 gss_get_mic (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ gss_qop_t, /* qop_req */ const gss_buffer_t, /* message_buffer */ gss_buffer_t /* message_token */ );
OM_uint32 gss_verify_mic (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t, /* message_buffer */ const gss_buffer_t, /* token_buffer */ gss_qop_t * /* qop_state */ );
OM_uint32 gss_verify_mic (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t, /* message_buffer */ const gss_buffer_t, /* token_buffer */ gss_qop_t * /* qop_state */ );
OM_uint32 gss_wrap (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ gss_qop_t, /* qop_req */ const gss_buffer_t, /* input_message_buffer */ int , /* conf_state */ gss_buffer_t /* output_message_buffer */ );
OM_uint32 gss_wrap (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ gss_qop_t, /* qop_req */ const gss_buffer_t, /* input_message_buffer */ int , /* conf_state */ gss_buffer_t /* output_message_buffer */ );
Wray Standards Track [Page 92] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 92] RFC 2744 GSS-API V2: C-bindings January 2000
OM_uint32 gss_unwrap (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t, /* input_message_buffer */ gss_buffer_t, /* output_message_buffer */ int , /* conf_state */ gss_qop_t * /* qop_state */ );
OM_uint32 gss_unwrap (OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ const gss_buffer_t, /* input_message_buffer */ gss_buffer_t, /* output_message_buffer */ int , /* conf_state */ gss_qop_t * /* qop_state */ );
OM_uint32 gss_display_status (OM_uint32 , /* minor_status */ OM_uint32, /* status_value */ int, /* status_type */ const gss_OID, /* mech_type */ OM_uint32 , /* message_context */ gss_buffer_t /* status_string */ );
OM_uint32 gss_display_status (OM_uint32 , /* minor_status */ OM_uint32, /* status_value */ int, /* status_type */ const gss_OID, /* mech_type */ OM_uint32 , /* message_context */ gss_buffer_t /* status_string */ );
OM_uint32 gss_indicate_mechs (OM_uint32 , /* minor_status */ gss_OID_set * /* mech_set */ );
OM_uint32 gss_indicate_mechs (OM_uint32 , /* minor_status */ gss_OID_set * /* mech_set */ );
OM_uint32 gss_compare_name (OM_uint32 , /* minor_status */ const gss_name_t, /* name1 */ const gss_name_t, /* name2 */ int * /* name_equal */ );
OM_uint32 gss_compare_name (OM_uint32 , /* minor_status */ const gss_name_t, /* name1 */ const gss_name_t, /* name2 */ int * /* name_equal */ );
OM_uint32 gss_display_name (OM_uint32 , /* minor_status */ const gss_name_t, /* input_name */ gss_buffer_t, /* output_name_buffer */ gss_OID * /* output_name_type */ );
OM_uint32 gss_display_name (OM_uint32 , /* minor_status */ const gss_name_t, /* input_name */ gss_buffer_t, /* output_name_buffer */ gss_OID * /* output_name_type */ );
OM_uint32 gss_import_name (OM_uint32 , /* minor_status */ const gss_buffer_t, /* input_name_buffer */ const gss_OID, /* input_name_type */ gss_name_t * /* output_name */ );
OM_uint32 gss_import_name (OM_uint32 , /* minor_status */ const gss_buffer_t, /* input_name_buffer */ const gss_OID, /* input_name_type */ gss_name_t * /* output_name */ );
Wray Standards Track [Page 93] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 93] RFC 2744 GSS-API V2: C-bindings January 2000
OM_uint32 gss_export_name (OM_uint32, /* minor_status */ const gss_name_t, /* input_name */ gss_buffer_t /* exported_name */ );
OM_uint32 gss_export_name (OM_uint32, /* minor_status */ const gss_name_t, /* input_name */ gss_buffer_t /* exported_name */ );
OM_uint32 gss_release_name (OM_uint32 *, /* minor_status */ gss_name_t * /* input_name */ );
OM_uint32 gss_release_name (OM_uint32 *, /* minor_status */ gss_name_t * /* input_name */ );
OM_uint32 gss_release_buffer (OM_uint32 , /* minor_status */ gss_buffer_t /* buffer */ );
OM_uint32 gss_release_buffer (OM_uint32 , /* minor_status */ gss_buffer_t /* buffer */ );
OM_uint32 gss_release_oid_set (OM_uint32 , /* minor_status */ gss_OID_set * /* set */ );
OM_uint32 gss_release_oid_set (OM_uint32 , /* minor_status */ gss_OID_set * /* set */ );
OM_uint32 gss_inquire_cred (OM_uint32 , /* minor_status */ const gss_cred_id_t, /* cred_handle */ gss_name_t , /* name */ OM_uint32 , /* lifetime */ gss_cred_usage_t , /* cred_usage */ gss_OID_set * /* mechanisms */ );
OM_uint32 gss_inquire_cred (OM_uint32 , /* minor_status */ const gss_cred_id_t, /* cred_handle */ gss_name_t , /* name */ OM_uint32 , /* lifetime */ gss_cred_usage_t , /* cred_usage */ gss_OID_set * /* mechanisms */ );
OM_uint32 gss_inquire_context ( OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ gss_name_t , /* src_name */ gss_name_t , /* targ_name */ OM_uint32 , /* lifetime_rec */ gss_OID , /* mech_type */ OM_uint32 , /* ctx_flags */ int , /* locally_initiated */ int * /* open */ );
OM_uint32 gss_inquire_context ( OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ gss_name_t , /* src_name */ gss_name_t , /* targ_name */ OM_uint32 , /* lifetime_rec */ gss_OID , /* mech_type */ OM_uint32 , /* ctx_flags */ int , /* locally_initiated */ int * /* open */ );
Wray Standards Track [Page 94] RFC 2744 GSS-API V2: C-bindings January 2000
Wray Standards Track [Page 94] RFC 2744 GSS-API V2: C-bindings January 2000
OM_uint32 gss_wrap_size_limit ( OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ gss_qop_t, /* qop_req */ OM_uint32, /* req_output_size */ OM_uint32 * /* max_input_size */ );
OM_uint32 gss_wrap_size_limit ( OM_uint32 , /* minor_status */ const gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ gss_qop_t, /* qop_req */ OM_uint32, /* req_output_size */ OM_uint32 * /* max_input_size */ );
OM_uint32 gss_add_cred ( OM_uint32 , /* minor_status */ const gss_cred_id_t, /* input_cred_handle */ const gss_name_t, /* desired_name */ const gss_OID, /* desired_mech */ gss_cred_usage_t, /* cred_usage */ OM_uint32, /* initiator_time_req */ OM_uint32, /* acceptor_time_req */ gss_cred_id_t , /* output_cred_handle */ gss_OID_set , /* actual_mechs */ OM_uint32 , /* initiator_time_rec */ OM_uint32 * /* acceptor_time_rec */ );
OM_uint32 gss_add_cred ( OM_uint32 , /* minor_status */ const gss_cred_id_t, /* input_cred_handle */ const gss_name_t, /* desired_name */ const gss_OID, /* desired_mech */ gss_cred_usage_t, /* cred_usage */ OM_uint32, /* initiator_time_req */ OM_uint32, /* acceptor_time_req */ gss_cred_id_t , /* output_cred_handle */ gss_OID_set , /* actual_mechs */ OM_uint32 , /* initiator_time_rec */ OM_uint32 * /* acceptor_time_rec */ );
OM_uint32 gss_inquire_cred_by_mech ( OM_uint32 , /* minor_status */ const gss_cred_id_t, /* cred_handle */ const gss_OID, /* mech_type */ gss_name_t , /* name */ OM_uint32 , /* initiator_lifetime */ OM_uint32 , /* acceptor_lifetime */ gss_cred_usage_t * /* cred_usage */ );
問い合わせる..信用..小さい方..状態..信用..イド..信用..ハンドル..タイプ..名前..命名..創始者..寿命..アクセプタ..寿命..信用..用法..信用..用法
OM_uint32 gss_export_sec_context ( OM_uint32 , /* minor_status */ gss_ctx_id_t , /* context_handle */ gss_buffer_t /* interprocess_token */ );
OM_uint32 gss_輸出_秒_文脈(OM_uint32、_/*小さい方の_状態*/gss ctx_イド_t、/*文脈_ハンドル*/gss_バッファ_t/*インタプロセス_象徴*/)。
OM_uint32 gss_import_sec_context ( OM_uint32 , /* minor_status */ const gss_buffer_t, /* interprocess_token */ gss_ctx_id_t * /* context_handle */ );
OM_uint32 gss_輸入_秒_文脈(OM_uint32、/*小さい方の_状態*/const gss_バッファ_t、/*インタプロセス_象徴*/gss_ctx_イド_t*/*文脈_ハンドル*/)。
Wray Standards Track [Page 95] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[95ページ]: C-結合2000年1月
OM_uint32 gss_create_empty_oid_set ( OM_uint32 , /* minor_status */ gss_OID_set * /* oid_set */ );
OM_uint32 gss_は_oid_が設定した空の_を作成します(OM_uint32、/*小さい方の_状態*/gss_OID_セット*/*oid_は*/を設定します)。
OM_uint32 gss_add_oid_set_member ( OM_uint32 , /* minor_status */ const gss_OID, /* member_oid */ gss_OID_set * /* oid_set */ );
OM_uint32 gss_は、_oid_が_メンバーを設定した(_OM_uint32、/*小さい方の_状態*/const gss OID、/*メンバー_oid*/gss_OID_セット*/*oid_は*/を設定した)と言い足します。
OM_uint32 gss_test_oid_set_member ( OM_uint32 , /* minor_status */ const gss_OID, /* member */ const gss_OID_set, /* set */ int * /* present */ );
OM_uint32 gss_テスト_oid_は_メンバーを設定しました(OM_uint32、_/*小さい方の_状態*/const gss OID、OID_が設定した/*メンバー*/const gss_、/*は*/int*/*現在の*/を設定しました)。
OM_uint32 gss_inquire_names_for_mech ( OM_uint32 , /* minor_status */ const gss_OID, /* mechanism */ gss_OID_set * /* name_types */ );
OM_uint32 gss_は_mechのために_名前_について問い合わせます(_OM_uint32、/*小さい方の_状態*/const gss OID、/*メカニズム*/gss_OID_セット*/*名前_は*/をタイプします)。
OM_uint32 gss_inquire_mechs_for_name ( OM_uint32 , /* minor_status */ const gss_name_t, /* input_name */ gss_OID_set * /* mech_types */ );
OM_uint32 gss_は_名前(OM_uint32、/*小さい方の_状態*/const gss_名前_t、/*入力_名前*/gss_OID_セット*/*mech_タイプ*/)のために_mechs_について問い合わせます。
OM_uint32 gss_canonicalize_name ( OM_uint32 , /* minor_status */ const gss_name_t, /* input_name */ const gss_OID, /* mech_type */ gss_name_t * /* output_name */ );
OM_uint32 gss_は_名前をcanonicalizeします(OM_uint32、/*小さい方の_状態*/const gss_名前_t、_/*入力_名前*/const gss OID、/*mech_タイプ*/gss_名前_t*/*は_名前*/を出力しました)。
OM_uint32 gss_duplicate_name ( OM_uint32 , /* minor_status */ const gss_name_t, /* src_name */ gss_name_t * /* dest_name */ );
OM_uint32 gss_写し_名(OM_uint32、/*小さい方の_状態*/const gss_名前_t、/*src_名前*/gss_名前_t*/*dest_名前*/)。
/* * The following routines are obsolete variants of gss_get_mic, * gss_verify_mic, gss_wrap and gss_unwrap. They should be * provided by GSS-API V2 implementations for backwards * compatibility with V1 applications. Distinct entrypoints
/、***以下のルーチンがgss_の時代遅れの異形が_micを手に入れるということである、_が_micに確かめるgss、gss_包装、およびgss_は開けられます。 それらは後方にGSS-API V2実現で提供された*がV1アプリケーションとの*互換性であるならそうするでしょうに。 異なったentrypoints
Wray Standards Track [Page 96] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[96ページ]: C-結合2000年1月
* (as opposed to #defines) should be provided, both to allow * GSS-API V1 applications to link against GSS-API V2 implementations, * and to retain the slight parameter type differences between the * obsolete versions of these routines and their current forms. */
* と対照的に、(#、が定義する、) ともに*GSS-API V1アプリケーションがGSS-API V2実現、*に対してリンクして、これらのルーチンとそれらの現在のフォームの*時代遅れのバージョンのわずかなパラメータの型差を保有するのを許容するために提供するべきである、*/
OM_uint32 gss_sign (OM_uint32 , /* minor_status */ gss_ctx_id_t, /* context_handle */ int, /* qop_req */ gss_buffer_t, /* message_buffer */ gss_buffer_t /* message_token */ );
OM_uint32 gss_サイン(OM_uint32、_/*小さい方の_状態*/gss ctx_イド_t、/*文脈_ハンドル*/int、/*qop_req*/gss_は_tをバッファリングします、/*メッセージ_バッファ*/gss_バッファ_t/*メッセージ_象徴*/)。
OM_uint32 gss_verify (OM_uint32 , /* minor_status */ gss_ctx_id_t, /* context_handle */ gss_buffer_t, /* message_buffer */ gss_buffer_t, /* token_buffer */ int * /* qop_state */ );
OM_uint32 gss_は(OM_uint32、_/*小さい方の_状態*/gss ctx_イド_t、/*文脈_ハンドル*/gss_バッファ_t、/*メッセージ_バッファ*/gss_バッファ_t、/*象徴_バッファ*/int*/*qop_状態*/)について確かめます。
OM_uint32 gss_seal (OM_uint32 , /* minor_status */ gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ int, /* qop_req */ gss_buffer_t, /* input_message_buffer */ int , /* conf_state */ gss_buffer_t /* output_message_buffer */ );
シール..小さい方..状態..イド..文脈..ハンドル..旗..バッファ..入力..メッセージ..バッファ..状態..バッファ..出力..メッセージ..バッファ
OM_uint32 gss_unseal (OM_uint32 , /* minor_status */ gss_ctx_id_t, /* context_handle */ gss_buffer_t, /* input_message_buffer */ gss_buffer_t, /* output_message_buffer */ int , /* conf_state */ int * /* qop_state */ );
開く..小さい方..状態..イド..文脈..ハンドル..バッファ..入力..メッセージ..バッファ..バッファ..出力..メッセージ..バッファ..状態..状態
#endif /* GSSAPI_H_ */
#endif/*GSSAPI_H_ */
Wray Standards Track [Page 97] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[97ページ]: C-結合2000年1月
Appendix B. Additional constraints for application binary portability
アプリケーションバイナリーの携帯性の付録B.Additional規制
The purpose of this C-bindings document is to encourage source-level portability of applications across GSS-API implementations on different platforms and atop different mechanisms. Additional goals that have not been explicitly addressed by this document are link- time and run-time portability.
このC-結合ドキュメントの目的は異なったプラットホームの上と、そして、異なったメカニズムの上でGSS-API実行の向こう側にアプリケーションのソースレベルの携帯性を奨励することです。このドキュメントによって明らかに記述されていない追加目標は、リンク時間とランタイムの携帯性です。
Link-time portability provides the ability to compile an application against one implementation of GSS-API, and then link it against a different implementation on the same platform. It is a stricter requirement than source-level portability.
リンク時間の携帯性はGSS-APIの1つの実現に対してアプリケーションを編集して、次に異なった実現に対して同じプラットホームでそれをリンクする能力を提供します。 それはソースレベルの携帯性より厳しい要件です。
Run-time portability differs from link-time portability only on those platforms that implement dynamically loadable GSS-API implementations, but do not offer load-time symbol resolution. On such platforms, run-time portability is a stricter requirement than link-time portability, and will typically include the precise placement of the various GSS-API routines within library entrypoint vectors.
ランタイムの携帯性はダイナミックにloadable GSS-API実行を実行するそれらのプラットホームだけでリンク時間の携帯性と異なっていますが、負荷時間シンボル解決を提供しないでください。 そのようなプラットホームでは、ランタイムの携帯性は、リンク時間の携帯性より厳しい要件であり、ライブラリentrypointベクトルの中に様々なGSS-APIルーチンの正確なプレースメントを通常含むでしょう。
Individual platforms will impose their own rules that must be followed to achieve link-time (and run-time, if different) portability. In order to ensure either form of binary portability, an ABI specification must be written for GSS-API implementations on that platform. However, it is recognized that there are some issues that are likely to be common to all such ABI specifications. This appendix is intended to be a repository for such common issues, and contains some suggestions that individual ABI specifications may choose to reference. Since machine architectures vary greatly, it may not be possible or desirable to follow these suggestions on all platforms.
そして、個々のプラットホームがリンク時間を達成するために従わなければならないそれら自身の規則を課す、(ランタイム、異なるなら携帯性。 どちらかのフォームの2進の携帯性を確実にして、GSS-API実行のためにそのプラットホームにABI仕様を書かなければなりません。 しかしながら、いくつかのそのようなすべてのABI仕様に共通である傾向がある問題があると認められます。 この付録は、そのような共通の課題のための倉庫であることを意図して、独特のABI仕様に参照に選ばれるかもしれないといういくつかの提案を含んでいます。 マシン構造が大いに異なるので、すべてのプラットホームにおけるこれらの提案に続くのは、可能であるか、または望ましくないかもしれません。
B.1. Pointers
B.1。 ポインタ
While ANSI-C provides a single pointer type for each declared type, plus a single (void *) type, some platforms (notably those using segmented memory architectures) augment this with various modified pointer types (e.g. far pointers, near pointers). These language bindings assume ANSI-C, and thus do not address such non-standard implementations. GSS-API implementations for such platforms must choose an appropriate memory model, and should use it consistently throughout. For example, if a memory model is chosen that requires the use of far pointers when passing routine parameters, then far pointers should also be used within the structures defined by GSS- API.
ANSI-Cがタイプであると宣言されたそれぞれのための単独のポインター型、および単独(空間*)のタイプを提供している間、様々な変更されたポインター型(例えば、ポインタの近くの遠いポインタ)によると、いくつかのプラットホーム(著しく区分されたメモリ構造を使用するもの)がこれを増大させます。 これらの言語結合は、ANSI-Cを仮定して、その結果、そのような標準的でない実現を記述しません。 そのようなプラットホームのためのGSS-API実行は、適切なメモリモデルを選ばなければならなくて、あらゆる点で一貫してそれを使用するべきです。 例えば、また、通常のパラメタを通過するとき遠いポインタの使用を必要とするメモリモデルが選ばれているなら、遠いポインタはGSS APIによって定義された構造の中で使用されるべきです。
Wray Standards Track [Page 98] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[98ページ]: C-結合2000年1月
B.2. Internal structure alignment
B.2。 内部の構造整列
GSS-API defines several data-structures containing differently-sized fields. An ABI specification should include a detailed description of how the fields of such structures are aligned, and if there is any internal padding in these data structures. The use of compiler defaults for the platform is recommended.
GSS-APIは異なってサイズの分野を含むいくつかのデータ構造を定義します。 並べられて、これらのデータ構造に何か内部の詰め物があれば、ABI仕様はそのような構造の分野がどうあるかに関する詳述を含むべきです。 コンパイラデフォルトのプラットホームの使用はお勧めです。
B.3. Handle types
B.3。 タイプを扱ってください。
The C bindings specify that the gss_cred_id_t and gss_ctx_id_t types should be implemented as either pointer or arithmetic types, and that if pointer types are used, care should be taken to ensure that two handles may be compared with the == operator. Note that ANSI-C does not guarantee that two pointer values may be compared with the == operator unless either the two pointers point to members of a single array, or at least one of the pointers contains a NULL value.
C結合は信用の_イド_tとgss_ctx_イド_tがタイプするgss_がポインタか算術型のどちらかとして実行されるべきであり、ポインター型が使用されているなら、2本のハンドルが=オペレータと比較されるかもしれないのを保証するために注意するべきであると指定します。 2個のポインタがただ一つのアレイの部材を示すか、または少なくともポインタの1つがNULL値を含まない場合、ANSI-Cが、2つのポインタ値が=オペレータにたとえられるかもしれないのを保証しないことに注意してください。
For binary portability, additional constraints are required. The following is an attempt at defining platform-independent constraints.
2進の携帯性において、追加規制が必要です。 ↓これはプラットホームから独立している規制を定義することへの試みです。
The size of the handle type must be the same as sizeof(void *), using the appropriate memory model.
適切なメモリモデルを使用して、ハンドルタイプのサイズはsizeof(空間*)と同じであるに違いありません。
The == operator for the chosen type must be a simple bit-wise comparison. That is, for two in-memory handle objects h1 and h2, the boolean value of the expression
選ばれたタイプのための=オペレータは簡単なビット的な比較であるに違いありません。 メモリの2ハンドルの物のh1とh2のために、それは表現のブール値です。
(h1 == h2)
(h1=h2)
should always be the same as the boolean value of the expression
表現のブール値といつも同じであるべきです。
(memcmp(&h1, &h2, sizeof(h1)) == 0)
(memcmp(h1、およびh2、sizeof(h1))=0)
The actual use of the type (void *) for handle types is discouraged, not for binary portability reasons, but since it effectively disables much of the compile-time type-checking that the compiler can otherwise perform, and is therefore not "programmer-friendly". If a pointer implementation is desired, and if the platform's implementation of pointers permits, the handles should be implemented as pointers to distinct implementation-defined types.
タイプ(空間*)のハンドルタイプの実際の使用はお勧めできないです、2進の携帯性が推論するのではなく、それが、事実上、そうでなければコンパイラが実行できるコンパイル時のタイプ照合の多くを無効にして、したがって、「プログラマに優しくはありません」。 ポインタ実現が望まれていて、プラットホームのポインタの実現が可能にするなら、ハンドルはポインタとして異なった実現で定義されたタイプに実行されるべきです。
B.4. The gss_name_t type
B.4。 タイプというgss_名前_t
The gss_name_t type, representing the internal name object, should be implemented as a pointer type. The use of the (void *) type is discouraged as it does not allow the compiler to perform strong type-checking. However, the pointer type chosen should be of the
内部名物を表して、タイプというgss_名前_tはポインター型として実行されるべきです。 コンパイラがそれで強いタイプ照合を実行できないとき、(空間*)タイプの使用はお勧めできないです。 しかしながら、選ばれたポインター型はそうであるべきです。
Wray Standards Track [Page 99] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[99ページ]: C-結合2000年1月
same size as the (void *) type. Provided this rule is obeyed, ABI specifications need not further constrain the implementation of gss_name_t objects.
(空間*)タイプと同じサイズ。 この規則が従われるなら、ABI仕様はさらにgss_名前_t物の実現を抑制する必要はありません。
B.5. The int and size_t types
B.5。 intとサイズ_tタイプ
Some platforms may support differently sized implementations of the "int" and "size_t" types, perhaps chosen through compiler switches, and perhaps dependent on memory model. An ABI specification for such a platform should include required implementations for these types. It is recommended that the default implementation (for the chosen memory model, if appropriate) is chosen.
いくつかのプラットホームが"int"と「サイズ_t」タイプの恐らくコンパイラスイッチを通して選ばれて、恐らくメモリモデルに依存する異なって大きさで分けられた実現を支持するかもしれません。 プラットホームが含むべきであるそのようなもののためのABI仕様はこれらのタイプのために実現を必要としました。 デフォルト実現(選ばれたメモリに関して、適切であるなら、モデル化する)が選ばれているのは、お勧めです。
B.6. Procedure-calling conventions
B.6。 手順呼び出し規則
Some platforms support a variety of different binary conventions for calling procedures. Such conventions cover things like the format of the stack frame, the order in which the routine parameters are pushed onto the stack, whether or not a parameter count is pushed onto the stack, whether some argument(s) or return values are to be passed in registers, and whether the called routine or the caller is responsible for removing the stack frame on return. For such platforms, an ABI specification should specify which calling convention is to be used for GSS-API implementations.
いくつかのプラットホームが、手順と呼ぶためにさまざまな異なった2進のコンベンションを支持します。 そのようなコンベンションはスタック・フレームの形式のようなものをカバーします、通常のパラメタがスタックに押されるオーダー、パラメタカウントがスタックに押されるか否かに関係なく、いくつかの議論かリターン値がレジスタで通過されることであり、呼ばれたルーチンか訪問者がリターンのときにスタック・フレームを取り外すのに責任があるか否かに関係なく。 そのようなプラットホームとして、ABI仕様は、GSS-API実行に使用されるためにコンベンションを召集するのが、どれであるかを指定するべきです。
References
参照
[GSSAPI] Linn, J., "Generic Security Service Application Program Interface Version 2, Update 1", RFC 2743, January 2000.
[GSSAPI] リン、J.、「一般的なセキュリティー・サービス適用業務プログラム・インタフェースバージョン2、アップデート1インチ、RFC2743、2000年1月。」
[XOM] OSI Object Management API Specification, Version 2.0 t", X.400 API Association & X/Open Company Limited, August 24, 1990 Specification of datatypes and routines for manipulating information objects.
「[XOM]OSI Object Management API Specification、バージョン2.0t」、X.400 API AssociationとX/Open有限会社、1990年8月24日に、情報を操るためのデータ型式とルーチンのSpecificationは反対します。
Author's Address
作者のアドレス
John Wray Iris Associates 5 Technology Park Drive, Westford, MA 01886 USA
ジョンレイIrisは5技術公園ドライブ、ウェストフォード、MA01886米国を関連づけます。
Phone: +1-978-392-6689 EMail: John_Wray@Iris.com
以下に電話をしてください。 +1-978-392-6689 メールしてください: John_Wray@Iris.com
Wray Standards Track [Page 100] RFC 2744 GSS-API V2: C-bindings January 2000
レイStandardsはRFC2744GSS-API V2を追跡します[100ページ]: C-結合2000年1月
Full Copyright Statement
完全な著作権宣言文
Copyright (C) The Internet Society (2000). All Rights Reserved.
Copyright(C)インターネット協会(2000)。 All rights reserved。
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.
それに関するこのドキュメントと翻訳は、コピーして、それが批評するか、またはそうでなければわかる他のもの、および派生している作品に提供するか、または準備されているかもしれなくて、コピーされて、発行されて、全体か一部広げられた実現を助けるかもしれません、どんな種類の制限なしでも、上の版権情報とこのパラグラフがそのようなすべてのコピーと派生している作品の上に含まれていれば。 しかしながら、このドキュメント自体は何らかの方法で変更されないかもしれません、インターネット協会か他のインターネット組織の版権情報か参照を取り除くのなどように、それを英語以外の言語に翻訳するのが著作権のための手順がインターネットStandardsの過程で定義したどのケースに従わなければならないか、必要に応じてさもなければ、インターネット標準を開発する目的に必要であるのを除いて。
The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.
上に承諾された限られた許容は、永久であり、インターネット協会、後継者または案配によって取り消されないでしょう。
This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
このドキュメントとそして、「そのままで」という基礎とインターネットの振興発展を目的とする組織に、インターネット・エンジニアリング・タスク・フォースが速達の、または、暗示しているすべての保証を放棄するかどうかというここにことであり、他を含んでいて、含まれて、情報の使用がここに侵害しないどんな保証も少しもまっすぐになるという情報か市場性か特定目的への適合性のどんな黙示的な保証。
Acknowledgement
承認
Funding for the RFC Editor function is currently provided by the Internet Society.
RFC Editor機能のための基金は現在、インターネット協会によって提供されます。
Wray Standards Track [Page 101]
レイ標準化過程[101ページ]
一覧
スポンサーリンク