From 221c999d30aa546156f4acfac300861e8d669aae Mon Sep 17 00:00:00 2001 From: harveyshao Date: Fri, 1 Apr 2022 09:34:02 +0800 Subject: [PATCH] opt some --- base/aaa/aaa.go | 2 +- {base/aaa => misc/ssh}/rsa.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {base/aaa => misc/ssh}/rsa.go (99%) diff --git a/base/aaa/aaa.go b/base/aaa/aaa.go index 4056746d..c2d99218 100644 --- a/base/aaa/aaa.go +++ b/base/aaa/aaa.go @@ -6,4 +6,4 @@ const AAA = "aaa" var Index = &ice.Context{Name: AAA, Help: "认证模块"} -func init() { ice.Index.Register(Index, nil, ROLE, SESS, TOTP, USER, RSA) } +func init() { ice.Index.Register(Index, nil, ROLE, SESS, TOTP, USER) } diff --git a/base/aaa/rsa.go b/misc/ssh/rsa.go similarity index 99% rename from base/aaa/rsa.go rename to misc/ssh/rsa.go index 7b6a07b3..840e4d47 100644 --- a/base/aaa/rsa.go +++ b/misc/ssh/rsa.go @@ -1,4 +1,4 @@ -package aaa +package ssh import ( "crypto/rand"