feat: rename method

This commit is contained in:
2023-03-06 17:53:29 +01:00
parent d94d5ec27c
commit d79f43f6a4
2 changed files with 13 additions and 10 deletions

View File

@@ -12,7 +12,10 @@ import (
"google.golang.org/grpc/credentials"
)
func CredentialsFromKeyWithPasswd(certFile, certKey, passwd string) (credentials.TransportCredentials, error) {
// FromRSAKeyWithPassword receives a certificate .pem file which was
// requested with .pem key file secured by password. By default go doesn't provide a
// standard packag that is not deprecated:
func FromRSAKeyWithPassword(certFile, certKey, passwd string) (credentials.TransportCredentials, error) {
if certFile == "" {
return nil, errors.New("certFile cannot be empty")
}