| 78 | } |
| 79 | |
| 80 | std::string SigningResultString(const SigningResult res) |
| 81 | { |
| 82 | switch (res) { |
| 83 | case SigningResult::OK: |
| 84 | return "No error"; |
| 85 | case SigningResult::PRIVATE_KEY_NOT_AVAILABLE: |
| 86 | return "Private key not available"; |
| 87 | case SigningResult::SIGNING_FAILED: |
| 88 | return "Sign failed"; |
| 89 | // no default case, so the compiler can warn about missing cases |
| 90 | } |
| 91 | assert(false); |
| 92 | } |
no outgoing calls