Exemplo n.º 1
0
// NewCertStore creates a new certificate store from
// a disk directory, loading and indexing all certificates.
func NewCertStore(location string) *CertStore {
	cLocation := C.CString(location)
	defer C.free(unsafe.Pointer(cLocation))

	return &CertStore{
		zcertstoreT: C.zcertstore_new(cLocation),
	}
}
Exemplo n.º 2
0
// NewCertStore creates a new certificate store from
// a disk directory, loading and indexing all certificates.
func NewCertStore(location string) *CertStore {
	return &CertStore{
		zcertstoreT: C.zcertstore_new(C.CString(location)),
	}
}