예제 #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),
	}
}
예제 #2
0
파일: certstore.go 프로젝트: vonwenm/goczmq
// 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)),
	}
}