Ÿë        à#  à#  `  a      k�         \!        Ö8        ²Ó    @   5w  [  €          
Ë‰ a      /a     @a    Ra    ea    va      ˆa    ›a    ¬a    Áa 	   Ôa 
   åa             	                                                      úa âL      b      *`                 c     (   x4    0   "  Ï‰ @   b 
  (   b        "b        2b    @   Bb    `   Sb    €   db        6ù    À   rb    à   |b       ˆb       •b   ° x  Ó‰     Ÿb WË     ªb Ó‰  € »b     € Çb     € Õb    @€ åb    `€                   0  öb      c        c         x     @   V!     `   c      ((        ªb        »b    @   c    `   0c    h   {     p   c     €   =c    ˆ   Ec    �   Mc    ˜   Uc        gc   ˆ   Î÷        %£        qc    @   x  ×‰ €   }c    À   ]     à   †c       |b       ˆb    @  ”c    `  ®  ÓÃ  €  oÜ ÓÃ  À   c ÓÃ     "b    @  2b    `  Bb    €  Sb       db    À  6ù    à  ã L      ¤¨ Ù‰ @  -     €  ²c Û‰ À  »c       Àc              Õ‰ Éc   `  Ë  a       Ôc a   €   âc a      ‚      €  c  Í‰    qc    À  y€ Þ‰    óc ß‰  B  d    @B       `B  Z�  â‰ €B  
d L   ÀB  d    àB         Ø‰ d   H   Ë  a       ¤¨ Ù‰ €   ¾è  úm  À   V        «` L   @  %d a   €  qc              Ú‰ -d       Ë  a       y€ Ý‰ €   -     À   Í(     à          Ö‰            Ý‰              Ü‰ =d <  ð  Hd âL      Rd    @   \d âL  €   x‰    À   bd ç‰    md    @  }d    `  ‹d    €  k�        \!     °  Ö8    À  ²Ó    à  ä        c  å‰    šd    @  ¢d è‰ €  ®d U  ÀÄ  ·d ­)  ÀÅ  D"  Í  €Æ  Lv  ê‰  Þ  2a	 l   @Þ  Éd ì‰ €Þ  Ód K  ÀÞ  àd    Àß  îd ­z   à  öd    @à  e    `à  e    €à  e     à  3e    Àà  Ee    àà  [e æ‰  á  je L    á  ~e L  @á  Ü     €á  •e    Àá  °    àá  �e     â  ¬e L    â  Ó a   @â  ·e l   Àâ  ¾e l    ã  V  \  @ã  ÌF ú   @ç  =Ö ú   @é  5w  l   @ë  Åe î‰ €ë  Íe ð‰ Àë  Üe ò‰  ì  îe ô‰ @ì  ÿe ö‰ €ì  ŸÜ    Àì  ÎR  Ï   í  f Ï  @í  f Ï  €í  ,f a   Àí  7f .  @î  Gf H  €î  ´/  4  @ï  ‚      `ï         
à‰        à‰ Rf     bf        kf a   @   wf ä‰ À              Ù‰       †f      �f     žf    °f    Áf      Ôf     èf    üf           Ô‰            ã‰       g   8  V  @       Uq ý‰ @   g a   €   %g .     b—  ÿ‰ @  h—  Š €  y—  ò‰ À  .g Š    ;g Š @  Eg Š €  0A  Š À  ¤¨ ö‰    Qg 	Š @  ^g Š €  lg Š À  yg Š    Šg Š @  Ü‘  Š €  ä‘  î‰ À  ñŠ î‰    Lv  é  @         é‰ šg   h   ¬  î‰     á  ò‰ @   ä	  î‰ €   "1  ò‰ À   &�  Š    � î‰ @  ¯•  Š €  ë%  î‰ À  ¨g Š    ´g Š @  ³P Š €  Âg Š À  Íg              ë‰              â‰        í‰              â‰               ï‰               â‰        ñ‰               â‰     Ý‰     ×‰               ó‰               â‰     Ù‰        õ‰ Ýg 	   ± #Ž  Ñ‰     èg ø‰ @  õg    @  ;@ Ò‰ `  h “    ‡ h    @‡ ,h    `‡ Z�  â‰ €‡ Bh    À‡            Ñ‰       Mh      ”c               
ù‰ [h      hh        rh        }h    @          
û‰        Ì‰       L       â‰     L          þ‰              â‰     ý‰         Š        ú‰              â‰     Ù‰     Ì                 Š        ü‰              â‰     Ý‰     ×‰               Š       âL      â‰     âL      “          Š              â‰     Û‰     Ý‰     ×‰     /      ¾          
Š              â‰     Û‰        Š               â‰     Ý‰     ×‰        Š              â‰     Ð         Š              â‰               Š               â‰     Ù‰               Š              â‰            âL      R                        Š              â‰     âL      R          Š              â‰       7   'ˆl–ß=¿JÕ!®Å	@ãb¸&ÔÅ£�þBûì¬Ü„ei‘4Ó@þÒƒq¶�ÑÐÇÎ “    '/*
** SPDX-License-Identifier: BSD-3-Clause
** Copyright Contributors to the OpenEXR Project.
*/

#ifndef OPENEXR_BASE_H
#define OPENEXR_BASE_H

#include "openexr_conf.h"

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

/** @file */

/** @brief Retrieve the current library version. The @p extra string is for
 * custom installs, and is a static string, do not free the returned
 * pointer.
 */
EXR_EXPORT void
exr_get_library_version (int* maj, int* min, int* patch, const char** extra);

/** 
 * @defgroup SafetyChecks Controls for internal safety checks
 * @{
 */

/** @brief Limit the size of image allowed to be parsed or created by
 * the library.
 *
 * This is used as a safety check against corrupt files, but can also
 * serve to avoid potential issues on machines which have very
 * constrained RAM.
 *
 * These values are among the only globals in the core layer of
 * OpenEXR. The intended use is for applications to define a global
 * default, which will be combined with the values provided to the
 * individual context creation routine. The values are used to check
 * against parsed header values. This adds some level of safety from
 * memory overruns where a corrupt file given to the system may cause
 * a large allocation to happen, enabling buffer overruns or other
 * potential security issue.
 *
 * These global values are combined with the values in
 * \ref exr_context_initializer_t using the following rules:
 *
 * 1. negative values are ignored.
 *
 * 2. if either value has a positive (non-zero) value, and the other
 *    has 0, the positive value is preferred.
 *
 * 3. If both are positive (non-zero), the minimum value is used.
 *
 * 4. If both values are 0, this disables the constrained size checks.
 *
 * This function does not fail.
 */
EXR_EXPORT void exr_set_default_maximum_image_size (int w, int h);

/** @brief Retrieve the global default maximum image size.
 *
 * This function does not fail.
 */
EXR_EXPORT void exr_get_default_maximum_image_size (int* w, int* h);

/** @brief Limit the size of an image tile allowed to be parsed or
 * created by the library.
 *
 * Similar to image size, this places constraints on the maximum tile
 * size as a safety check against bad file data
 *
 * This is used as a safety check against corrupt files, but can also
 * serve to avoid potential issues on machines which have very
 * constrained RAM
 *
 * These values are among the only globals in the core layer of
 * OpenEXR. The intended use is for applications to define a global
 * default, which will be combined with the values provided to the
 * individual context creation routine. The values are used to check
 * against parsed header values. This adds some level of safety from
 * memory overruns where a corrupt file given to the system may cause
 * a large allocation to happen, enabling buffer overruns or other
 * potential security issue.
 *
 * These global values are combined with the values in
 * \ref exr_context_initializer_t using the following rules:
 *
 * 1. negative values are ignored.
 *
 * 2. if either value has a positive (non-zero) value, and the other
 *    has 0, the positive value is preferred.
 *
 * 3. If both are positive (non-zero), the minimum value is used.
 *
 * 4. If both values are 0, this disables the constrained size checks.
 *
 * This function does not fail.
 */
EXR_EXPORT void exr_set_default_maximum_tile_size (int w, int h);

/** @brief Retrieve the global maximum tile size.
 *
 * This function does not fail.
 */
EXR_EXPORT void exr_get_default_maximum_tile_size (int* w, int* h);

/** @} */

/**
 * @defgroup CompressionDefaults Provides default compression settings
 * @{
 */

/** @brief Assigns a default zip compression level.
 *
 * This value may be controlled separately on each part, but this
 * global control determines the initial value.
 */
EXR_EXPORT void exr_set_default_zip_compression_level (int l);

/** @brief Retrieve the global default zip compression value
 */
EXR_EXPORT void exr_get_default_zip_compression_level (int* l);

/** @brief Assigns a default DWA compression quality level.
 *
 * This value may be controlled separately on each part, but this
 * global control determines the initial value.
 */
EXR_EXPORT void exr_set_default_dwa_compression_quality (float q);

/** @brief Retrieve the global default dwa compression quality
 */
EXR_EXPORT void exr_get_default_dwa_compression_quality (float* q);

/** @} */

/**
 * @defgroup MemoryAllocators Provides global control over memory allocators
 * @{
 */

/** @brief Function pointer used to hold a malloc-like routine.
 *
 * Providing these to a context will override what memory is used to
 * allocate the context itself, as well as any allocations which
 * happen during processing of a file or stream. This can be used by
 * systems which provide rich malloc tracking routines to override the
 * internal allocations performed by the library.
 *
 * This function is expected to allocate and return a new memory
 * handle, or `NULL` if allocation failed (which the library will then
 * handle and return an out-of-memory error).
 *
 * If one is provided, both should be provided.
 * @sa exr_memory_free_func_t
 */
typedef void* (*exr_memory_allocation_func_t) (size_t bytes);

/** @brief Function pointer used to hold a free-like routine.
 *
 * Providing these to a context will override what memory is used to
 * allocate the context itself, as well as any allocations which
 * happen during processing of a file or stream. This can be used by
 * systems which provide rich malloc tracking routines to override the
 * internal allocations performed by the library.
 *
 * This function is expected to return memory to the system, ala free
 * from the C library.
 *
 * If providing one, probably need to provide both routines.
 * @sa exr_memory_allocation_func_t
 */
typedef void (*exr_memory_free_func_t) (void* ptr);

/** @brief Allow the user to override default allocator used internal
 * allocations necessary for files, attributes, and other temporary
 * memory.
 *
 * These routines may be overridden when creating a specific context,
 * however this provides global defaults such that the default can be
 * applied.
 *
 * If either pointer is 0, the appropriate malloc/free routine will be
 * substituted.
 *
 * This function does not fail.
 */
EXR_EXPORT void exr_set_default_memory_routines (
    exr_memory_allocation_func_t alloc_func, exr_memory_free_func_t free_func);

/** @} */

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* OPENEXR_BASE_H */
  $   )ˆÍÌÑ578Ëa–ßi~” T¾R( 	ÅÍÁ=pM)‹FÿÏ B    )‹      Í•]oÚ0…ïû+<_ì.~	�vkC&F"�/ÑLÝ4M“‰�Äk°£Ø-°_?C@eìCChW~ÛÏ9ŽlÿE8îÅ'º�‡4yÿvÐï!ì Ü{=€0ë�i¸ Ñ#œS^,²ðˆª2ˆ§�›yÑm*‘ÂÃÁ…¿þ\ ?ç”ÙùF˜‚}Éø©�z4Z0ÞÜÀÔ\ƒæ’¥¢à„ñ¹"¹&‰R¥Ý€©D;Z;uÊJ%V^¤�,båÊäJzÀ„6NI“šq‰’©ÈÔì«Ó&òŠlF…L•5’…„-¥?Slµ†wÿ/PË³‰�Î6¼ë²
|“£'ZˆLv°Q%|1Ï�®’aÓ0+¨| ™H1¢…éàOýÞø³Õ�É×³Ÿ¢¼âi¿éuF7ãNˆƒ�sèaÍÐjº8PmÐ\1‘
ÎŽŠïjñ�øv|Á°Ö„\'•(�PòY
Öâ¾ÕDº¤ÖkÛ:È«}U-a¿KÃ½Æ¤;�FqØŸÖ‘°õÏtg;vLhÅ¥A¡¨xbTµÚfP½”3]Þìºhë°Ynp€�ƒ*ÿ"–Gù ÕBî'cS?˜É0Š»a7¶'¶«öQbk6šžÓp�æ%jz×í+„Ž=â½;£‰iÔOíŸ^·§0pé^�óîo£h€ƒMs
|×mü3¾áK³Ïˆ²ÛÙ_
þÄb–vëº§ð‚Ü×¿ðò‡·	lïY6Ï�õ[ög>-….       +ˆÎÍÒ585Ì¾Ï I    +‹      Í•_oÓ0Åß÷)ŒxKnÿ2´¥A£)P­k«.B“;‰U×¶»¶|zÜ¦ÕjahÕ„)¾Î±s~çFNð"uã/ãúßÐøãÛA¿‹°ð©Ùˆâ¨|Ðòku€Þ#œ[[\ ,—KÙô•Î ž@nç¢ÆjžXŸZŠÃ³`3ž¡ g„º;
,·‚…}IÙ
©�ZXÃ)kì@ÕÜ€a’¦\0Ÿ²¹òsã'JîT%Æ3FìÕ-(´Jœ\¤�,)>…bms%›@¹±^A’É˜Í\íµü¦ßòY–y\¦*€Ò�ó;ƒÁTÑõÆwý¿ñè¬lƒ#Ó­ÕÍP‡�ÍÑ=<“lU�Ã€Ï3dtÒÁÀ%L‘3?ã)FDØþÚïŽ¾9Ø|³:Ê5K;øM·3¼u"Éœ@knœæ
‡b,š+ÊSÎèQñm)¾å?Žo•šˆ™DóÂr%¤à«¨‰¦ Žµír]U•ú·4\ÆÕ0ÆW“Þ0Žú“2ºÙâÁÝ³u‡c¢™´(âš%Véõ.ƒÒÐK95Åå¾D;BÍ³Üâ!TþC,9“j)«É¸Ôf2¾~ïõ‡ïFÎònTµú›·F­ÑðjçîBõ×í&BÇ Ú�ë§BX¶²U‚øs|�€²Â5�Éd}'¸œß®œƒC³'!Cõ'·ç±dš}_¸hGT­NAR¯Ÿ?‰[}'Ø=%Ê/åiºòê,�<q`w°ý[Pþå~M»¡šH        -ˆÉ�þB³�•·#�²¾ÐüÿÓƒi¦ÁÒÑ¾Ï b    -/*
 * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
 * Copyright Siemens AG 2018-2020
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef OPENSSL_HTTP_H
#define OPENSSL_HTTP_H
#pragma once

#include <openssl/opensslconf.h>

#include <openssl/bio.h>
#include <openssl/asn1.h>
#include <openssl/conf.h>

#ifdef __cplusplus
extern "C" {
#endif

#define OSSL_HTTP_NAME "http"
#define OSSL_HTTPS_NAME "https"
#define OSSL_HTTP_PREFIX OSSL_HTTP_NAME "://"
#define OSSL_HTTPS_PREFIX OSSL_HTTPS_NAME "://"
#define OSSL_HTTP_PORT "80"
#define OSSL_HTTPS_PORT "443"
#define OPENSSL_NO_PROXY "NO_PROXY"
#define OPENSSL_HTTP_PROXY "HTTP_PROXY"
#define OPENSSL_HTTPS_PROXY "HTTPS_PROXY"

#define OSSL_HTTP_DEFAULT_MAX_LINE_LEN (4 * 1024)
#define OSSL_HTTP_DEFAULT_MAX_RESP_LEN (100 * 1024)
#define OSSL_HTTP_DEFAULT_MAX_CRL_LEN (32 * 1024 * 1024)

/* Low-level HTTP API */
OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx);
int OSSL_HTTP_REQ_CTX_set_request_line(OSSL_HTTP_REQ_CTX *rctx, int method_POST,
    const char *server, const char *port,
    const char *path);
int OSS