View definition

func CheckPublicKeyString

Defined in github.com/gogits/gogs/models/ssh_key.go

Description

CheckPublicKeyString checks if the given public key string is recognized by SSH. It returns the actual public key line on success.