Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
re6stnet
Commits
4b2b4efc
Commit
4b2b4efc
authored
Jan 30, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need this.
parent
590a9b79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
re6st/utils.py
re6st/utils.py
+0
-13
No files found.
re6st/utils.py
View file @
4b2b4efc
...
@@ -215,9 +215,6 @@ def ipFromBin(ip, suffix=''):
...
@@ -215,9 +215,6 @@ def ipFromBin(ip, suffix=''):
return
socket
.
inet_ntop
(
socket
.
AF_INET6
,
return
socket
.
inet_ntop
(
socket
.
AF_INET6
,
struct
.
pack
(
'>QQ'
,
int
(
ip
[:
64
],
2
),
int
(
ip
[
64
:],
2
)))
struct
.
pack
(
'>QQ'
,
int
(
ip
[:
64
],
2
),
int
(
ip
[
64
:],
2
)))
def
loadCert
(
pem
):
return
crypto
.
load_certificate
(
crypto
.
FILETYPE_PEM
,
pem
)
def
dump_address
(
address
):
def
dump_address
(
address
):
return
';'
.
join
(
map
(
','
.
join
,
address
))
return
';'
.
join
(
map
(
','
.
join
,
address
))
...
@@ -252,13 +249,3 @@ def sqliteCreateTable(db, name, *columns):
...
@@ -252,13 +249,3 @@ def sqliteCreateTable(db, name, *columns):
"
table
%
r
already
exists
with
unexpected
schema
" % name)
"
table
%
r
already
exists
with
unexpected
schema
" % name)
db.execute(sql)
db.execute(sql)
return True
return True
def searchCertFromEmail(db, email):
try:
cert_string, = db.execute("
SELECT
cert
FROM
cert
WHERE
email
=
?
",
(email,)).next()
except StopIteration:
# Certificates not found
return None
return cert_string
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment