SF.net SVN: tmda: [2164] trunk/tmda/bin/tmda-ofmipd
[email protected] Wed, 28 Feb 2007 17:42:55 -0800
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2164
http://svn.sourceforge.net/tmda/?rev=2164&view=rev
Author: srwarren
Date: 2007-02-28 17:42:55 -0800 (Wed, 28 Feb 2007)
Log Message:
-----------
tmda-ofmipd: Patch from Jason to allow SSL key/cert file options to use ~/
Modified Paths:
--------------
trunk/tmda/bin/tmda-ofmipd
Modified: trunk/tmda/bin/tmda-ofmipd
===================================================================
--- trunk/tmda/bin/tmda-ofmipd 2007-02-28 03:53:17 UTC (rev 2163)
+++ trunk/tmda/bin/tmda-ofmipd 2007-03-01 01:42:55 UTC (rev 2164)
@@ -403,14 +403,14 @@
raise ValueError, \
'--ssl-cert and --ssl-key are required when using --ssl or --tls'
- fhc = file(opts.ssl_cert, 'r')
+ fhc = file(os.path.expanduser(opts.ssl_cert), 'r')
datac = fhc.read()
fhc.close()
x509 = X509()
x509.parse(datac)
opts.ssl_cert_value = X509CertChain([x509])
- fhk = file(opts.ssl_key, 'r')
+ fhk = file(os.path.expanduser(opts.ssl_key), 'r')
datak = fhk.read()
fhk.close()
opts.ssl_key_value = parsePEMKey(datak, private=True)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.