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
+7
View File
@@ -4,15 +4,22 @@ from chocolate_protocol_pb2 import chocolatemessage
import M2Crypto import M2Crypto
import urllib2, os, grp, pwd, sys, time, random, sys, hashlib, subprocess import urllib2, os, grp, pwd, sys, time, random, sys, hashlib, subprocess
import dialog, getopt import dialog, getopt
import sni_challenge import sni_challenge
import configurator import configurator
#from trustify import sni_challenge
#from trustify import configurator
# It is OK to use the upstream M2Crypto here instead of our modified # It is OK to use the upstream M2Crypto here instead of our modified
# version. # version.
# bits of hashcash to generate # bits of hashcash to generate
from CONFIG import difficulty from CONFIG import difficulty
#from trustify.CONFIG import difficulty
#Trustify certificate and chain files #Trustify certificate and chain files
from CONFIG import cert_file, chain_file from CONFIG import cert_file, chain_file
#from trustify.CONFIG import cert_file, chain_file
def sha256(m): def sha256(m):
return hashlib.sha256(m).hexdigest() return hashlib.sha256(m).hexdigest()
+1
View File
@@ -6,6 +6,7 @@ import sys
import socket import socket
from CONFIG import SERVER_ROOT from CONFIG import SERVER_ROOT
#from trustify.CONFIG import SERVER_ROOT
class VH(object): class VH(object):
def __init__(self, vh_path, vh_addrs): def __init__(self, vh_path, vh_addrs):
+8
View File
@@ -9,11 +9,19 @@ from shutil import move
from os import remove, close, path from os import remove, close, path
import binascii import binascii
import augeas import augeas
import configurator import configurator
#from trustify import configurator
from CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT from CONFIG import CONFIG_DIR, WORK_DIR, SERVER_ROOT
from CONFIG import CHOC_CERT_CONF, OPTIONS_SSL_CONF, APACHE_CHALLENGE_CONF from CONFIG import CHOC_CERT_CONF, OPTIONS_SSL_CONF, APACHE_CHALLENGE_CONF
from CONFIG import S_SIZE, NONCE_SIZE 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): def getChocCertFile(nonce):
""" """