| 28 | }; |
| 29 | |
| 30 | static inline std::string PrintToString(RpcKeyFormat format) { |
| 31 | switch (format) { |
| 32 | case RpcKeyFormat::PEM: |
| 33 | return "PEM"; |
| 34 | case RpcKeyFormat::DER: |
| 35 | return "DER"; |
| 36 | default: |
| 37 | return "<unknown>"; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | } // namespace android |