[Python-modules-commits] [python-getdns] 01/03: Back out STARTTLS support
Scott Kitterman
kitterman at moszumanska.debian.org
Fri Jan 15 20:38:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
kitterman pushed a commit to branch master
in repository python-getdns.
commit a9f0647cd4cadf91bba1be4a6ff6bad51b9aaa52
Author: Scott Kitterman <scott at kitterman.com>
Date: Fri Jan 15 15:19:39 2016 -0500
Back out STARTTLS support
From 32dfd91e45420774ffe4384383322eedea77f931 Mon Sep 17 00:00:00 2001
From: Melinda Shore <melinda.shore at nomountain.net>
Date: Wed, 30 Dec 2015 16:39:13 -0900
Subject: [PATCH] Backed out STARTTLS support
---
---
context.c | 2 +-
getdns.c | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/context.c b/context.c
index b31859e..294885c 100644
--- a/context.c
+++ b/context.c
@@ -875,7 +875,7 @@ context_set_dns_transport_list(getdns_context *context, PyObject *py_value)
long transport;
if ((py_transport = PyList_GetItem(py_value, (Py_ssize_t)i)) != NULL) {
transport = PyLong_AsLong(py_transport);
- if ((transport < GETDNS_TRANSPORT_UDP) || (transport > GETDNS_TRANSPORT_STARTTLS)) {
+ if ((transport < GETDNS_TRANSPORT_UDP) || (transport > GETDNS_TRANSPORT_TLS)) {
PyErr_SetString(getdns_error, GETDNS_RETURN_INVALID_PARAMETER_TEXT);
return -1;
}
diff --git a/getdns.c b/getdns.c
index 0f009c5..f7c812e 100644
--- a/getdns.c
+++ b/getdns.c
@@ -488,7 +488,6 @@ add_getdns_constants(PyObject *g)
PyModule_AddIntConstant(g, "TRANSPORT_UDP", 1200);
PyModule_AddIntConstant(g, "TRANSPORT_TCP", 1201);
PyModule_AddIntConstant(g, "TRANSPORT_TLS", 1202);
- PyModule_AddIntConstant(g, "TRANSPORT_STARTTLS", 1203);
/*
* suffix appending methods
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-getdns.git
More information about the Python-modules-commits
mailing list