mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core, Core/SSL: GetP7Signature
git-svn-id: svn://ultimatepp.org/upp/trunk@10340 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c1f68bfbcd
commit
ee8213b932
6 changed files with 83 additions and 2 deletions
|
|
@ -874,4 +874,18 @@ WString Replace(const WString& s, const VectorMap<WString, WString>& fr)
|
|||
return Replace__<wchar>(s, fr.GetKeys(), fr.GetValues());
|
||||
}
|
||||
|
||||
|
||||
String (*GetP7Signature__)(const void *data, int length, const String& cert_pem, const String& pkey_pem);
|
||||
|
||||
String GetP7Signature(const void *data, int length, const String& cert_pem, const String& pkey_pem)
|
||||
{
|
||||
ASSERT_(GetP7Signature__, "Missing SSL support (Core/SSL)");
|
||||
return (*GetP7Signature__)(data, length, cert_pem, pkey_pem);
|
||||
}
|
||||
|
||||
String GetP7Signature(const String& data, const String& cert_pem, const String& pkey_pem)
|
||||
{
|
||||
return GetP7Signature(data, data.GetLength(), cert_pem, pkey_pem);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue