aboutsummaryrefslogtreecommitdiffstats
path: root/missing
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-24 06:55:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-24 06:55:09 +0000
commita800231e9d9220f39513a427ee30b5d5a02f7c05 (patch)
treee9cba973aaaee79b5785c98d0765743cb3005521 /missing
parentee33bdd062e86d28ea26039386b1bed5bac9994e (diff)
downloadruby-a800231e9d9220f39513a427ee30b5d5a02f7c05.tar.gz
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
Diffstat (limited to 'missing')
-rw-r--r--missing/crypt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/missing/crypt.h b/missing/crypt.h
index 7c2642f593..7a78767931 100644
--- a/missing/crypt.h
+++ b/missing/crypt.h
@@ -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);