From d91cacb8392dbea4dec69a48fbaf1fc9aa8a84dc Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 24 Aug 2004 21:57:12 +0000 Subject: agree with nick: this legal-chars-in-filename stuff gets us nothing svn:r2310 --- src/common/crypto.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/common/crypto.c') diff --git a/src/common/crypto.c b/src/common/crypto.c index 4339e8c758..063f076144 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -344,13 +344,6 @@ int crypto_pk_read_private_key_from_filename(crypto_pk_env_t *env, const char *k tor_assert(env && keyfile); -#if 0 - if(strspn(keyfile,CONFIG_LEGAL_FILENAME_CHARACTERS) != strlen(keyfile)) { - /* filename contains nonlegal characters */ - return -1; - } -#endif - /* open the keyfile */ f_pr=fopen(keyfile,"rb"); if (!f_pr) -- cgit v1.2.3-54-g00ecf