Fixed imports.

This commit is contained in:
Nick Daly 2012-05-15 08:58:15 -05:00
parent 8d44a5c12a
commit 329e92ab86
3 changed files with 12 additions and 5 deletions

View File

@ -6,7 +6,7 @@ an onion-wrapped PGP message.
FIXME: replace this with a real library. Why doesn't gnupg do this?
"""
from errors import InvalidSignatureError
from utilities import InvalidSignatureError
import gnupg
import re

View File

@ -1,6 +1,6 @@
"""The HTTPS Santiago listener and sender."""
from simplesantiago import SantiagoListener, SantiagoSender
from santiago import SantiagoListener, SantiagoSender
import cherrypy
import httplib, urllib, urlparse

View File

@ -2,6 +2,12 @@
"""The Santiago service.
Santiago is designed to let users negotiate services without third party
interference. By sending OpenPGP signed and encrypted messages over HTTPS (or
other protocols) between parties, I hope to reduce or even prevent MITM attacks.
Santiago can also use the Tor network as a proxy (with Python 2.7 or later),
allowing this negotiation to happen very quietly.
Start me with:
$ python -i santiago.py
@ -35,13 +41,14 @@ or later. A copy of GPLv3 is available [from the Free Software Foundation]
import ast
import cfg
from collections import defaultdict as DefaultDict
from errors import InvalidSignatureError, UnwillingHostError
import gnupg
import logging
from pgpprocessor import Unwrapper
import re
import sys
from pgpprocessor import Unwrapper
import utilities
class Santiago(object):
"""This Santiago is a less extensible Santiago.
@ -513,7 +520,7 @@ if __name__ == "__main__":
logging.getLogger().setLevel(logging.DEBUG)
cert = "santiago.crt"
mykey = load_config("production.cfg").get("pgpprocessor", "keyid")
mykey = utilities.load_config("production.cfg").get("pgpprocessor", "keyid")
listeners = { "https": { "socket_port": 8080,
"ssl_certificate": cert,