Utility functions for XrdHTTP. More...
#include <cstring>#include <openssl/hmac.h>#include <openssl/bio.h>#include <openssl/buffer.h>#include <openssl/err.h>#include <openssl/ssl.h>#include <pthread.h>#include <memory>#include <vector>#include <algorithm>#include "XProtocol/XPtypes.hh"#include "XrdSec/XrdSecEntity.hh"#include "sys/param.h"#include "XrdOuc/XrdOucString.hh"Go to the source code of this file.
Functions | |
| void | calcHashes (char *hash, const char *fn, kXR_int16 request, XrdSecEntity *secent, time_t tim, const char *key) |
| static int | char_to_int (int c) |
| int | compareHash (const char *h1, const char *h2) |
| char * | escapeXML (const char *str) |
| bool | Fromhexdigest (const unsigned char *input, int length, unsigned char *out) |
| static void | HMAC_CTX_free (HMAC_CTX *ctx) |
| static HMAC_CTX * | HMAC_CTX_new () |
| std::string | itos (long i) |
| char * | mystrchrnul (const char *s, int c) |
| int | parseURL (char *url, char *host, int &port, char **path) |
| char * | quote (const char *str) |
| void | Tobase64 (const unsigned char *input, int length, char *out) |
| char * | unquote (char *str) |
| void calcHashes | ( | char * | hash, |
| const char * | fn, | ||
| kXR_int16 | request, | ||
| XrdSecEntity * | secent, | ||
| time_t | tim, | ||
| const char * | key ) |
Definition at line 219 of file XrdHttpUtils.cc.
References HMAC_CTX_free(), HMAC_CTX_new(), XrdSecEntity::host, XrdSecEntity::moninfo, XrdSecEntity::name, Tobase64(), and XrdSecEntity::vorg.
Referenced by XrdHttpProtocol::Process(), and XrdHttpReq::Redir().
|
static |
Definition at line 153 of file XrdHttpUtils.cc.
Referenced by Fromhexdigest().
| int compareHash | ( | const char * | h1, |
| const char * | h2 ) |
Definition at line 355 of file XrdHttpUtils.cc.
Referenced by XrdHttpProtocol::Process().
| char * escapeXML | ( | const char * | str | ) |
Definition at line 458 of file XrdHttpUtils.cc.
Referenced by XrdHttpReq::Error().
| bool Fromhexdigest | ( | const unsigned char * | input, |
| int | length, | ||
| unsigned char * | out ) |
Definition at line 169 of file XrdHttpUtils.cc.
References char_to_int().
|
static |
Definition at line 65 of file XrdHttpUtils.cc.
Referenced by calcHashes().
|
static |
Definition at line 59 of file XrdHttpUtils.cc.
Referenced by calcHashes().
| std::string itos | ( | long | i | ) |
Definition at line 183 of file XrdHttpUtils.cc.
| char * mystrchrnul | ( | const char * | s, |
| int | c ) |
Definition at line 193 of file XrdHttpUtils.cc.
| int parseURL | ( | char * | url, |
| char * | host, | ||
| int & | port, | ||
| char ** | path ) |
Definition at line 77 of file XrdHttpUtils.cc.
Referenced by XrdHttpReq::ProcessHTTPReq().
| char * quote | ( | const char * | str | ) |
Definition at line 399 of file XrdHttpUtils.cc.
Referenced by encode_raw().
| void Tobase64 | ( | const unsigned char * | input, |
| int | length, | ||
| char * | out ) |
Definition at line 121 of file XrdHttpUtils.cc.
References BIO_set_flags().
Referenced by calcHashes().
| char * unquote | ( | char * | str | ) |
Definition at line 370 of file XrdHttpUtils.cc.
Referenced by decode_raw().