Added commented import statements for pending trustify package

This commit is contained in:
James Kasten 2012-08-10 00:07:59 -04:00
parent b3dba8e6db
commit 7e4069f691
3 changed files with 16 additions and 0 deletions

View file

@ -4,15 +4,22 @@ from chocolate_protocol_pb2 import chocolatemessage
import M2Crypto
import urllib2, os, grp, pwd, sys, time, random, sys, hashlib, subprocess
import dialog, getopt
import sni_challenge
import configurator
#from trustify import sni_challenge
#from trustify import configurator
# It is OK to use the upstream M2Crypto here instead of our modified
# version.
# bits of hashcash to generate
from CONFIG import difficulty
#from trustify.CONFIG import difficulty
#Trustify certificate and chain files
from CONFIG import cert_file, chain_file
#from trustify.CONFIG import cert_file, chain_file
def sha256(m):
return hashlib.sha256(m).hexdigest()

View file

@ -6,6 +6,7 @@ import sys
import socket
from CONFIG import SERVER_ROOT
#from trustify.CONFIG import SERVER_ROOT
class VH(object):
def __init__(self, vh_path, vh_addrs):

View file

@ -9,11 +9,19 @@ from shutil import move
from os import remove, close, path
import binascii
import augeas
import configurator
#from trustify import configurator
from CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT
from CONFIG import CHOC_CERT_CONF, OPTIONS_SSL_CONF, APACHE_CHALLENGE_CONF
from CONFIG import S_SIZE, NONCE_SIZE
#Once directory changes to trustify and becomes package
#from trustify.CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT
#from trustify.CONFIG import CHOC_CERT_CONF, OPTIONS_SSL_CONF
#from trustify.CONFIG import APACHE_CHALLENGE_CONF
#from trustify.CONFIG import S_SIZE, NONCE_SIZE
def getChocCertFile(nonce):
"""