aboutsummaryrefslogtreecommitdiff
path: root/files/ru/mozilla/projects/nss/reference/fc_login/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/mozilla/projects/nss/reference/fc_login/index.html')
-rw-r--r--files/ru/mozilla/projects/nss/reference/fc_login/index.html53
1 files changed, 0 insertions, 53 deletions
diff --git a/files/ru/mozilla/projects/nss/reference/fc_login/index.html b/files/ru/mozilla/projects/nss/reference/fc_login/index.html
deleted file mode 100644
index 5842a77b23..0000000000
--- a/files/ru/mozilla/projects/nss/reference/fc_login/index.html
+++ /dev/null
@@ -1,53 +0,0 @@
----
-title: FC_Login
-slug: Mozilla/Projects/NSS/Reference/FC_Login
-translation_of: Mozilla/Projects/NSS/Reference/FC_Login
----
-<p>
-</p>
-<h3 id="Name" name="Name"> Name </h3>
-<p><code>FC_Login()</code> - log a user into a token.
-</p>
-<h3 id="Syntax" name="Syntax"> Syntax </h3>
-<pre class="eval"><a href="en/CK_RV">CK_RV</a> FC_Login(
- <a href="en/CK_SESSION_HANDLE">CK_SESSION_HANDLE</a> hSession,
- <a href="en/CK_USER_TYPE">CK_USER_TYPE</a> userType,
- <a href="en/CK_CHAR">CK_CHAR_PTR</a> pPin,
- <a href="en/CK_ULONG">CK_ULONG</a> ulPinLen
-);
-</pre>
-<h3 id="Parameters" name="Parameters"> Parameters </h3>
-<p><code>FC_Login()</code> takes four parameters:
-</p>
-<dl><dt><code>hSession</code>
-</dt><dd>{{ mediawiki.external('in') }} a session handle
-</dd><dt><code>userType</code>
-</dt><dd>{{ mediawiki.external('in') }} the user type (<code>CKU_SO</code> or <code>CKU_USER</code>)
-</dd><dt><code>pPin</code>
-</dt><dd>{{ mediawiki.external('in') }} a pointer that points to the user's PIN
-</dd><dt><code>ulPinLen</code>
-</dt><dd>{{ mediawiki.external('in') }} the length of the PIN
-</dd></dl>
-<h3 id="Description" name="Description"> Description </h3>
-<p><code>FC_Login()</code> logs a user into a token.
-</p><p>The Security Officer (<code>CKU_SO</code>) only logs in to initialize the normal user's PIN. The SO PIN is the empty string. The NSS cryptographic module doesn't allow the SO to log in if the normal user's PIN is already initialized.
-</p>
-<h3 id="Return_value" name="Return_value"> Return value </h3>
-<p><code>FC_Login()</code> returns the following return codes.
-</p>
-<ul><li> <code>CKR_OK</code>: the user logged in successfully.
-</li><li> <code>CKR_DEVICE_ERROR</code>: the token is in the Error state.
-</li><li> <code>CKR_HOST_MEMORY</code>: memory allocation failed.
-</li><li> <code>CKR_PIN_INCORRECT</code>: the PIN is incorrect.
-</li><li> <code>CKR_PIN_LEN_RANGE</code>: the PIN is too long (<code>ulPinLen</code> is greater than 255).<div class="note">The function should return <code>CKR_PIN_INCORRECT</code> in this case.</div>
-</li><li> <code>CKR_SESSION_HANDLE_INVALID</code>: the session handle is invalid.
-</li><li> <code>CKR_USER_ALREADY_LOGGED_IN</code>: the user is already logged in.
-</li><li> <code>CKR_USER_TYPE_INVALID</code>
-<ul><li> The token can't authenticate the user because there is no key database or the user's password isn't initialized.
-</li><li> <code>userType</code> is <code>CKU_SO</code> and the normal user's PIN is already initialized.
-</li></ul>
-</li></ul>
-<h3 id="See_also" name="See_also"> See also </h3>
-<ul><li> <a href="en/NSC_Login">NSC_Login</a>
-</li></ul>
-{{ languages( { "ja": "ja/FC_Login" } ) }}