| 2485 | } |
| 2486 | |
| 2487 | AP_DECLARE(char *) ap_pbase64encode(apr_pool_t *p, char *string) |
| 2488 | { |
| 2489 | char *encoded; |
| 2490 | int l = strlen(string); |
| 2491 | |
| 2492 | encoded = (char *) apr_palloc(p, apr_base64_encode_len(l)); |
| 2493 | apr_base64_encode(encoded, string, l); |
| 2494 | |
| 2495 | return encoded; |
| 2496 | } |
| 2497 | |
| 2498 | /* we want to downcase the type/subtype for comparison purposes |
| 2499 | * but nothing else because ;parameter=foo values are case sensitive. |
no outgoing calls
no test coverage detected