| 263 | } |
| 264 | |
| 265 | void |
| 266 | sctp_print_key(sctp_key_t *key, const char *str) |
| 267 | { |
| 268 | uint32_t i; |
| 269 | |
| 270 | if (key == NULL) { |
| 271 | SCTP_PRINTF("%s: [Null key]\n", str); |
| 272 | return; |
| 273 | } |
| 274 | SCTP_PRINTF("%s: len %u, ", str, key->keylen); |
| 275 | if (key->keylen) { |
| 276 | for (i = 0; i < key->keylen; i++) |
| 277 | SCTP_PRINTF("%02x", key->key[i]); |
| 278 | SCTP_PRINTF("\n"); |
| 279 | } else { |
| 280 | SCTP_PRINTF("[Null key]\n"); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | void |
| 285 | sctp_show_key(sctp_key_t *key, const char *str) |
no outgoing calls
no test coverage detected