Apache HTTPD
apr_encode.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
21#ifndef APR_ENCODE_H
22#define APR_ENCODE_H
23
24#include "apr.h"
25#include "apr_general.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
105#define APR_ENCODE_STRING (-1)
106
110#define APR_ENCODE_NONE 0
111
115#define APR_ENCODE_RELAXED 1
116
120#define APR_ENCODE_NOPADDING 2
121
125#define APR_ENCODE_URL 4
126
130#define APR_ENCODE_BASE64URL (APR_ENCODE_NOPADDING | APR_ENCODE_URL)
131
135#define APR_ENCODE_BASE32HEX 8
136
140#define APR_ENCODE_COLON 16
141
145#define APR_ENCODE_LOWER 32
146
169
188APR_DECLARE(apr_status_t) apr_encode_base64_binary(char *dest, const unsigned char *src,
190
207APR_DECLARE(const char *)apr_pencode_base64(apr_pool_t * p, const char *src,
209
225APR_DECLARE(const char *)apr_pencode_base64_binary(apr_pool_t * p, const unsigned char *src,
227
252
276 const char *src, apr_ssize_t slen, int flags, apr_size_t * len);
277
294APR_DECLARE(const char *)apr_pdecode_base64(apr_pool_t * p, const char *src,
297
315 const char *src, apr_ssize_t slen, int flags, apr_size_t * len)
317
339
357APR_DECLARE(apr_status_t) apr_encode_base32_binary(char *dest, const unsigned char *src,
359
375APR_DECLARE(const char *)apr_pencode_base32(apr_pool_t * p, const char *src,
378
393APR_DECLARE(const char *)apr_pencode_base32_binary(apr_pool_t * p, const unsigned char *src,
396
420
443 const char *src, apr_ssize_t slen, int flags, apr_size_t * len);
444
460APR_DECLARE(const char *)apr_pdecode_base32(apr_pool_t * p, const char *src,
463
479APR_DECLARE(const unsigned char *)apr_pdecode_base32_binary(apr_pool_t * p,
480 const char *src, apr_ssize_t slen, int flags, apr_size_t * len)
482
503
521 const unsigned char *src, apr_ssize_t slen, int flags,
522 apr_size_t * len);
523
539APR_DECLARE(const char *)apr_pencode_base16(apr_pool_t * p, const char *src,
542
558 const unsigned char *src, apr_ssize_t slen,
560
584
607 const char *src, apr_ssize_t slen, int flags, apr_size_t * len);
608
623APR_DECLARE(const char *)apr_pdecode_base16(apr_pool_t * p, const char *src,
626
641APR_DECLARE(const unsigned char *)apr_pdecode_base16_binary(apr_pool_t * p,
642 const char *src, apr_ssize_t slen, int flags, apr_size_t * len)
644
646#ifdef __cplusplus
647}
648#endif
649
650#endif /* !APR_ENCODE_H */
APR Miscellaneous library routines.
const char apr_ssize_t int apr_size_t * len
Definition apr_encode.h:168
const char * src
Definition apr_encode.h:167
const char apr_ssize_t int flags
Definition apr_encode.h:168
const char apr_ssize_t slen
Definition apr_encode.h:168
const void apr_status_t(*) apr_status_t(* APR_DECLARE)(void) apr_pool_pre_cleanup_register(apr_pool_t *p
Definition apr_pools.h:646
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
const char apr_status_t(*) apr_pool_t *poo __attribute__)((nonnull(2, 4)))
Definition apr_pools.h:567
apr_pool_t * p
Definition md_event.c:32