ServerKeyID returns the server's GPG public key ID, in its long (16 capital hex digits) format. If the server isn't running a sign handler, the error will be ErrNoSigning.
()
| 550 | // hex digits) format. If the server isn't running a sign handler, the error |
| 551 | // will be ErrNoSigning. |
| 552 | func (c *Client) ServerKeyID() (string, error) { |
| 553 | if err := c.condDiscovery(); err != nil { |
| 554 | return "", err |
| 555 | } |
| 556 | if c.serverKeyID == "" { |
| 557 | return "", ErrNoSigning |
| 558 | } |
| 559 | return c.serverKeyID, nil |
| 560 | } |
| 561 | |
| 562 | // ServerPublicKeyBlobRef returns the server's public key blobRef |
| 563 | // If the server isn't running a sign handler, the error will be ErrNoSigning. |
no test coverage detected