mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 23:43:41 +08:00
update go api
This commit is contained in:
20
go/gmssl/certificate.go
Normal file
20
go/gmssl/certificate.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user