]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c
2 C Run-Time Libraries (CRT) Wrapper Implementation for OpenSSL-based
5 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
6 Copyright (c) Microsoft Corporation
7 SPDX-License-Identifier: BSD-2-Clause-Patent
14 #include <Library/DebugLib.h>
16 /* Convert character to lowercase */
19 if (('A' <= (c
)) && ((c
) <= 'Z')) {
20 return (c
- ('A' - 'a'));
25 /* Compare first n bytes of string s1 with string s2, ignoring case */
26 int strncasecmp (const char *s1
, const char *s2
, size_t n
)
35 Val
= tolower(*s1
) - tolower(*s2
);
49 /* Read formatted data from a string */
50 int sscanf (const char *buffer
, const char *format
, ...)
53 // Null sscanf() function implementation to satisfy the linker, since
54 // no direct functionality logic dependency in present UEFI cases.
60 // -- Dummy OpenSSL Support Routines --
63 int BIO_printf (void *bio
, const char *format
, ...)
68 int BIO_snprintf(char *buf
, size_t n
, const char *format
, ...)