Importing crypto libraries

- crypto/external/bsd/heimdal
 - crypto/external/bsd/libsaslc
 - crypto/external/bsd/netpgp
 - crypto/external/bsd/openssl

Change-Id: I91dbf05f33e637edf5b9bb408d5baddd7ba8cf75
This commit is contained in:
2015-10-07 00:45:38 +00:00
parent b1d068470b
commit ebfedea0ce
5082 changed files with 1472353 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#! /usr/bin/env python2.5
# netpgp bindings for python
import _netpgppython
# initialisations
n = _netpgppython.new_netpgp_t()
_netpgppython.netpgp_setvar(n, "homedir", "/home/agc/.gnupg")
_netpgppython.netpgp_setvar(n, "hash", "SHA256")
_netpgppython.netpgp_init(n)
userid = _netpgppython.netpgp_getvar(n, "userid")
_netpgppython.netpgp_sign_file(n, userid, "a", "a.gpg", 0, 0, 0)
_netpgppython.netpgp_verify_file(n, "a.gpg", "/dev/null", 0)