()
| 1380 | } |
| 1381 | |
| 1382 | func (c *Client) buildSigner() (*schema.Signer, error) { |
| 1383 | c.initSignerPublicKeyBlobrefOnce.Do(c.initSignerPublicKeyBlobref) |
| 1384 | if !c.signerPublicKeyRef.Valid() { |
| 1385 | return nil, camtypes.ErrClientNoPublicKey |
| 1386 | } |
| 1387 | return schema.NewSigner(c.signerPublicKeyRef, strings.NewReader(c.publicKeyArmored), c.SecretRingFile()) |
| 1388 | } |
| 1389 | |
| 1390 | // sigTime optionally specifies the signature time. |
| 1391 | // If zero, the current time is used. |
no test coverage detected