home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / vlc-2-0-5-win32.exe / sdk / include / vlc / plugins / vlc_http.h < prev    next >
C/C++ Source or Header  |  2012-12-12  |  3KB  |  68 lines

  1. /*****************************************************************************
  2.  * vlc_http.h: Shared code for HTTP clients
  3.  *****************************************************************************
  4.  * Copyright (C) 2001-2008 VLC authors and VideoLAN
  5.  * $Id: ddde13efed1e11a15632f17e1da4437f59750988 $
  6.  *
  7.  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  8.  *          Christophe Massiot <massiot@via.ecp.fr>
  9.  *          R├⌐mi Denis-Courmont <rem # videolan.org>
  10.  *          Antoine Cellerier <dionoea at videolan dot org>
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify it
  13.  * under the terms of the GNU Lesser General Public License as published by
  14.  * the Free Software Foundation; either version 2.1 of the License, or
  15.  * (at your option) any later version.
  16.  *
  17.  * This program is distributed in the hope that it will be useful,
  18.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20.  * GNU Lesser General Public License for more details.
  21.  *
  22.  * You should have received a copy of the GNU Lesser General Public License
  23.  * along with this program; if not, write to the Free Software Foundation,
  24.  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  25.  *****************************************************************************/
  26.  
  27. #ifndef VLC_HTTP_H
  28. #define VLC_HTTP_H 1
  29.  
  30. /**
  31.  * \file
  32.  * This file defines functions, structures, enums and macros shared between
  33.  * HTTP clients.
  34.  */
  35.  
  36. /* RFC 2617: Basic and Digest Access Authentication */
  37. typedef struct http_auth_t
  38. {
  39.     char *psz_realm;
  40.     char *psz_domain;
  41.     char *psz_nonce;
  42.     char *psz_opaque;
  43.     char *psz_stale;
  44.     char *psz_algorithm;
  45.     char *psz_qop;
  46.     int i_nonce;
  47.     char *psz_cnonce;
  48.     char *psz_HA1; /* stored H(A1) value if algorithm = "MD5-sess" */
  49. } http_auth_t;
  50.  
  51.  
  52. VLC_API void http_auth_Init( http_auth_t * );
  53. VLC_API void http_auth_Reset( http_auth_t * );
  54. VLC_API void http_auth_ParseWwwAuthenticateHeader
  55.             ( vlc_object_t *, http_auth_t * ,
  56.               const char * );
  57. VLC_API int http_auth_ParseAuthenticationInfoHeader
  58.             ( vlc_object_t *, http_auth_t *,
  59.               const char *, const char *,
  60.               const char *, const char *,
  61.               const char * );
  62. VLC_API char *http_auth_FormatAuthorizationHeader
  63.             ( vlc_object_t *, http_auth_t *,
  64.               const char *, const char *,
  65.               const char *, const char * ) VLC_USED;
  66.  
  67. #endif /* VLC_HTTP_H */
  68.