[Python-checkins] CVS: python/dist/src/Modules cryptmodule.c,2.5,2.6

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Tue, 1 Feb 2000 15:12:41 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory weyr:/home/fdrake/projects/python/Modules
Modified Files:
	cryptmodule.c 
Log Message:
Added docstring to crypt.crypt() based on the documentation.
Index: cryptmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/cryptmodule.c,v
retrieving revision 2.5
retrieving revision 2.6
diff -C2 -r2.5 -r2.6
*** cryptmodule.c	1998年12月04日 18:49:42	2.5
--- cryptmodule.c	2000年02月01日 20:12:39	2.6
***************
*** 23,28 ****
 }
 
 static PyMethodDef crypt_methods[] = {
! 	{"crypt",	crypt_crypt},
 	{NULL,		NULL}		/* sentinel */
 };
--- 23,37 ----
 }
 
+ static char crypt_crypt__doc__[] = "\
+ crypt(word, salt) -> string\n\
+ word will usually be a user's password. salt is a 2-character string\n\
+ which will be used to select one of 4096 variations of DES. The characters\n\
+ in salt must be either \".\", \"/\", or an alphanumeric character. Returns\n\
+ the hashed password as a string, which will be composed of characters from\n\
+ the same alphabet as the salt.";
+ 
+ 
 static PyMethodDef crypt_methods[] = {
! 	{"crypt",	crypt_crypt, 0, crypt_crypt__doc__},
 	{NULL,		NULL}		/* sentinel */
 };

AltStyle によって変換されたページ (->オリジナル) /