Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
56c345b2
Commit
56c345b2
authored
Dec 09, 1996
by
Roger E. Masse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed grandly.
parent
75362381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Modules/cryptmodule.c
Modules/cryptmodule.c
+7
-7
No files found.
Modules/cryptmodule.c
View file @
56c345b2
/* cryptmodule.c - by Steve Majewski
*/
#include "
allobjects
.h"
#include "
Python
.h"
#include <sys/types.h>
...
...
@@ -9,20 +9,20 @@
/* Module crypt */
static
o
bject
*
crypt_crypt
(
self
,
args
)
o
bject
*
self
,
*
args
;
static
PyO
bject
*
crypt_crypt
(
self
,
args
)
PyO
bject
*
self
,
*
args
;
{
char
*
word
,
*
salt
;
extern
char
*
crypt
();
if
(
!
getargs
(
args
,
"(ss)"
,
&
word
,
&
salt
))
{
if
(
!
PyArg_Parse
(
args
,
"(ss)"
,
&
word
,
&
salt
))
{
return
NULL
;
}
return
newstringobject
(
crypt
(
word
,
salt
)
);
return
PyString_FromString
(
crypt
(
word
,
salt
)
);
}
static
struct
methodlist
crypt_methods
[]
=
{
static
PyMethodDef
crypt_methods
[]
=
{
{
"crypt"
,
crypt_crypt
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
@@ -30,5 +30,5 @@ static struct methodlist crypt_methods[] = {
void
initcrypt
()
{
initm
odule
(
"crypt"
,
crypt_methods
);
Py_InitM
odule
(
"crypt"
,
crypt_methods
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment