Add Amazon protocol version as a parameter

as to smooth the transition from SHA-1 to SHA-256 signing
This commit is contained in:
Jean-Marie Verdun
2020-05-30 10:09:25 -04:00
committed by Yorik van Havre
parent 8f0a7696c2
commit 1ed4d901ca
2 changed files with 18 additions and 0 deletions

View File

@@ -125,6 +125,17 @@ Py::Object Cloud::Module::sCloudRestore(const Py::Tuple& args)
return Py::None();
}
Py::Object Cloud::Module::sCloudProtocolVersion(const Py::Tuple& args)
{
char *ProtocolVersion;
if (!PyArg_ParseTuple(args.ptr(), "et","utf-8", &TCPPort)) // convert args: Python->C
return Py::None();
if (this->ProtocolVersion.getStrValue() != ProtocolVersion) {
this->ProtocolVersion.setValue(ProtocolVersion);
}
return Py::None();
}
struct data_buffer
{
const char *ptr;