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:
nobu 2017-05-24 06:55:09 +00:00
parent 9e1624cfe8
commit 92261511b6
2 changed files with 10 additions and 2 deletions

View file

@ -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);