📄 loginlib.html
字号:
</blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the specified user or password is incorrect.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b><hr><a name="loginUserVerify"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginUserVerify( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginUserVerify( )</strong> - verify a user name and password in the login table</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS loginUserVerify ( char * name, /* name of user */ char * passwd /* password of user */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine verifies a user entry in the login table.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the user name or password is not found.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b><hr><a name="loginUserShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginUserShow( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginUserShow( )</strong> - display the user login table</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void loginUserShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays valid user names.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><pre> -> loginUserShow () User Name ========= peter robin value = 0 = 0x0</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b><hr><a name="loginPrompt"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginPrompt( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginPrompt( )</strong> - display a login prompt and validate a user entry</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS loginPrompt ( char * userName /* user name, ask if NULL or not provided */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays a login prompt and validates a user entry. If bothuser name and password match with an entry in the login table, the user isthen given access to the VxWorks system. Otherwise, it prompts the useragain.<p>All control characters are disabled during authentication except CTRL-D,which will terminate the remote login session.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK if the name and password are valid, or ERROR if there is anEOF or the routine times out.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b><hr><a name="loginStringSet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginStringSet( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginStringSet( )</strong> - change the login string</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void loginStringSet ( char * newString /* string to become new login prompt */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine changes the login prompt string to <i>newString</i>.The maximum string length is 80 characters.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b><hr><a name="loginEncryptInstall"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginEncryptInstall( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginEncryptInstall( )</strong> - install an encryption routine</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void loginEncryptInstall ( FUNCPTR rtn, /* function pointer to encryption routine */ int var /* argument to the encryption routine (unused) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine allows the user to install a custom encryption routine.The custom routine <i>rtn</i> must be of the following form: <pre>STATUS encryptRoutine ( char *password, /* string to encrypt */ char *encryptedPassword /* resulting encryption */ )</pre>When a custom encryption routine is installed, a host version ofthis routine must be written to replace the tool vxencryptin <b>host/<i>hostOs</i>/bin</b>.<p></blockquote><h4>EXAMPLE</h4><blockquote><p>The custom example above could be installed as follows:<pre>#ifdef INCLUDE_SECURITY loginInit (); /* initialize login table */ shellLoginInstall (loginPrompt, NULL); /* install shell security */ loginEncryptInstall (encryptRoutine, NULL); /* install encrypt. routine */#endif</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b>, <b><a href="./loginLib.html#loginDefaultEncrypt">loginDefaultEncrypt</a>( )</b>, <b><a href="../../tornado/hutils/vxencrypt.html#top" >vxencrypt</a></b><hr><a name="loginDefaultEncrypt"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>loginDefaultEncrypt( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>loginDefaultEncrypt( )</strong> - default password encryption routine</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS loginDefaultEncrypt ( char * in, /* input string */ char * out /* encrypted string */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine provides default encryption for login passwords. It employsa simple encryption algorithm. It takes as arguments a string <i>in</i> and apointer to a buffer <i>out</i>. The encrypted string is then stored in thebuffer.<p>The input strings must be at least 8 characters and no more than 40characters.<p>If a more sophisticated encryption algorithm is needed, this routine canbe replaced, as long as the new encryption routine retains the samedeclarations as the default routine. The routine vxencryptin <b>host/<i>hostOs</i>/bin</b>should also be replaced by a host version of <i>encryptionRoutine</i>. For moreinformation, see the manual entry for <b><a href="./loginLib.html#loginEncryptInstall">loginEncryptInstall</a>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the password is invalid.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./loginLib.html#top">loginLib</a></b>, <b><a href="./loginLib.html#loginEncryptInstall">loginEncryptInstall</a>( )</b>, <b><a href="../../tornado/hutils/vxencrypt.html#top" >vxencrypt</a></b><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -