mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
string.c: for small crypt_data
* string.c (rb_str_crypt): struct crypt_data defined in missing/crypt.h is small enough. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e1624cfe8
commit
92261511b6
2 changed files with 10 additions and 2 deletions
|
@ -237,6 +237,8 @@ struct crypt_data {
|
|||
char cryptresult[1+4+4+11+1]; /* encrypted result */
|
||||
};
|
||||
|
||||
#define SIZEOF_CRYPT_DATA (KS_SIZE*8+(1+4+4+11+1))
|
||||
|
||||
char *crypt(const char *key, const char *setting);
|
||||
void setkey(const char *key);
|
||||
void encrypt(char *block, int flag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue