diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-24 20:48:22 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-24 20:48:22 +0000 |
commit | 015232bd394367b8422b69222847e622a45b3714 (patch) | |
tree | 0c464d0e902cef4e7bab58556b86a2f0c32f3399 /src/common/crypto.c | |
parent | 4b4bfd500a1b4919f385314172ae71e0acfa79e2 (diff) | |
download | tor-015232bd394367b8422b69222847e622a45b3714.tar tor-015232bd394367b8422b69222847e622a45b3714.tar.gz |
As far as I can tell, CONFIG_LEGAL_FILENAME_CHARACTERS is both pointless and broken. #if it out, pending agreement from arma. This fixes a bug on win32 that rejected paths with a : in them.
svn:r2309
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 6a9dc348e..4339e8c75 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -344,10 +344,12 @@ 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"); |