aboutsummaryrefslogtreecommitdiffstats
path: root/missing/des_tables.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-04 02:40:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-04 02:40:04 +0000
commit36ddebdc6ff9770e1452d4051121d123baacaaa9 (patch)
treeb41a9db77eec21cf58039e275fda96ab2b17b2bb /missing/des_tables.c
parente5bc1d41d4a25a809ce721d138175ce7a3afff10 (diff)
downloadruby-36ddebdc6ff9770e1452d4051121d123baacaaa9.tar.gz
des_tables.c: generation rule
* defs/gmake.mk (missing/des_tables.c): move the recipe from common.mk. this is less common. * missing/crypt.c (init_des): if des_tables.c is empty, initialize DES tables at runtime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/des_tables.c')
-rw-r--r--missing/des_tables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/missing/des_tables.c b/missing/des_tables.c
index 051659d553..ab6b1d1883 100644
--- a/missing/des_tables.c
+++ b/missing/des_tables.c
@@ -1,3 +1,5 @@
+#ifndef HAVE_DES_TABLES
+
/* Initial key schedule permutation */
static const C_block PC1ROT[64/CHUNKBITS][1<<CHUNKBITS] = {
{
@@ -1610,3 +1612,5 @@ static const C_block CF6464[64/CHUNKBITS][1<<CHUNKBITS] = {
},
};
+#define HAVE_DES_TABLES 1
+#endif