示例#1
0
// SetMeta sets meta data for a Cert
func (c *Cert) SetMeta(key string, value string) {
	cKey := C.CString(key)
	defer C.free(unsafe.Pointer(cKey))

	cValue := C.CString(value)
	defer C.free(unsafe.Pointer(cValue))

	C.Set_meta(c.zcertT, cKey, cValue)
}
示例#2
0
文件: cert.go 项目: vonwenm/goczmq
// SetMeta sets meta data for a Cert
func (c *Cert) SetMeta(key string, value string) {
	C.Set_meta(c.zcertT, C.CString(key), C.CString(value))
}