Exemplo n.º 1
0
// MemoryStore returns handle to new empty in-memory certificate store
func MemoryStore() (res CertStore, err error) {
	res.hStore = C.openStoreMem()
	if res.hStore == C.HCERTSTORE(nil) {
		err = getErr("Error creating memory cert store")
		return
	}
	return
}
Exemplo n.º 2
0
// MemoryStore returns handle to new empty in-memory certificate store
func MemoryStore() (*CertStore, error) {
	var res CertStore
	res.hStore = C.openStoreMem()
	if res.hStore == C.HCERTSTORE(nil) {
		return &res, getErr("Error creating memory cert store")
	}
	return &res, nil
}