@@ -134,7 +134,7 @@ func sessionHandler(session ssh.Session) {
134
134
}
135
135
136
136
func publicKeyHandler (ctx ssh.Context , key ssh.PublicKey ) bool {
137
- if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
137
+ if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
138
138
log .Debug ("Handle Public Key: Fingerprint: %s from %s" , gossh .FingerprintSHA256 (key ), ctx .RemoteAddr ())
139
139
}
140
140
@@ -146,7 +146,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
146
146
147
147
// check if we have a certificate
148
148
if cert , ok := key .(* gossh.Certificate ); ok {
149
- if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
149
+ if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
150
150
log .Debug ("Handle Certificate: %s Fingerprint: %s is a certificate" , ctx .RemoteAddr (), gossh .FingerprintSHA256 (key ))
151
151
}
152
152
@@ -200,7 +200,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
200
200
return false
201
201
}
202
202
203
- if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
203
+ if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
204
204
log .Debug ("Successfully authenticated: %s Certificate Fingerprint: %s Principal: %s" , ctx .RemoteAddr (), gossh .FingerprintSHA256 (key ), principal )
205
205
}
206
206
ctx .SetValue (giteaKeyID , pkey .ID )
@@ -232,7 +232,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
232
232
return false
233
233
}
234
234
235
- if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
235
+ if log .IsDebug () { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
236
236
log .Debug ("Successfully authenticated: %s Public Key Fingerprint: %s" , ctx .RemoteAddr (), gossh .FingerprintSHA256 (key ))
237
237
}
238
238
ctx .SetValue (giteaKeyID , pkey .ID )
0 commit comments