| 500 | } |
| 501 | |
| 502 | void CryptoKey::decode(bufferlist::const_iterator& bl) |
| 503 | { |
| 504 | using ceph::decode; |
| 505 | decode(type, bl); |
| 506 | decode(created, bl); |
| 507 | __u16 len; |
| 508 | decode(len, bl); |
| 509 | bufferptr tmp; |
| 510 | bl.copy_deep(len, tmp); |
| 511 | if (_set_secret(type, tmp) < 0) |
| 512 | throw ceph::buffer::malformed_input("malformed secret"); |
| 513 | } |
| 514 | |
| 515 | void CryptoKey::dump(Formatter *f) const |
| 516 | { |
nothing calls this directly
no test coverage detected