Commit 7e93b4c3 authored by sanghg's avatar sanghg Committed by vipwzw

修复crypto中golint的警告

修复sm2的错误
parent 2d8e3bea
...@@ -13,10 +13,10 @@ type sm2Driver struct { ...@@ -13,10 +13,10 @@ type sm2Driver struct {
sm2.Driver sm2.Driver
} }
const Name = "auth_sm2" const name = "auth_sm2"
const ID = 258 const id = 258
func init() { func init() {
crypto.Register(Name, &sm2Driver{}) crypto.Register(name, &sm2Driver{})
crypto.RegisterType(Name, ID) crypto.RegisterType(name, id)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment