update go api

This commit is contained in:
Zhi Guan
2017-05-09 22:16:21 +08:00
parent a08b9e2221
commit a71c82c373
16 changed files with 81 additions and 0 deletions

20
go/gmssl/certificate.go Normal file
View File

@@ -0,0 +1,20 @@
/* +build cgo */
package gmssl
/*
#include <openssl/x509.h>
#include <openssl/pem.h>
*/
import "C"
import (
"errors"
)
func GetAttributesFromCertificate(cert string) (map[string]string, error) {
return nil, errors.New("Not implemented")
}
func GetPublicKeyFromCertificate(cert string) (*PublicKey, error) {
return nil, errors.New("Not implemented")
}