upgrade external dependency libraries to last version, see external/version.ini for more information.
							parent
							
								
									0f3c8900dd
								
							
						
					
					
						commit
						c43a47f4f6
					
				| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
 | 
			
		||||
rem ============================================
 | 
			
		||||
rem 请调整以下路径,以适配您自己的的系统环境。
 | 
			
		||||
rem 注意:必须使用Pyhont 3.4,32位版本!!
 | 
			
		||||
rem 注意:必须使用Pyhont 3.7,32位版本!!
 | 
			
		||||
rem ============================================
 | 
			
		||||
SET PYEXEC=C:\Program Files\Python\python.exe
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
    <content url="file://$MODULE_DIR$/builder">
 | 
			
		||||
      <sourceFolder url="file://$MODULE_DIR$/builder" isTestSource="false" />
 | 
			
		||||
    </content>
 | 
			
		||||
    <orderEntry type="jdk" jdkName="py34" jdkType="Python SDK" />
 | 
			
		||||
    <orderEntry type="jdk" jdkName="py37" jdkType="Python SDK" />
 | 
			
		||||
    <orderEntry type="sourceFolder" forTests="false" />
 | 
			
		||||
  </component>
 | 
			
		||||
  <component name="TestRunnerService">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -78,15 +78,6 @@ class BuilderBase:
 | 
			
		|||
    def _build_libssh(self, file_name):
 | 
			
		||||
        cc.e("this is a pure-virtual function.")
 | 
			
		||||
 | 
			
		||||
    def build_sqlite(self):
 | 
			
		||||
        file_name = 'sqlite-autoconf-{}.tar.gz'.format(env.ver_sqlite)
 | 
			
		||||
        if not utils.download_file('sqlite source tarball', 'http://sqlite.org/2017/{}'.format(file_name), PATH_DOWNLOAD, file_name):
 | 
			
		||||
            return
 | 
			
		||||
        self._build_sqlite(file_name)
 | 
			
		||||
 | 
			
		||||
    def _build_sqlite(self, file_name):
 | 
			
		||||
        cc.e("this is a pure-virtual function.")
 | 
			
		||||
 | 
			
		||||
    def fix_output(self):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -196,6 +187,10 @@ class BuilderWin(BuilderBase):
 | 
			
		|||
        else:
 | 
			
		||||
            cc.w('already exists, skip.')
 | 
			
		||||
 | 
			
		||||
        # fix source file
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'libssh', 'src', 'session.c'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'libssh', 'src'), os.path.join(self.LIBSSH_PATH_SRC, 'src'), 'session.c')
 | 
			
		||||
 | 
			
		||||
        cc.i('build libssh...')
 | 
			
		||||
        sln_file = os.path.join(self.LIBSSH_PATH_SRC, 'libssh.vs2015.sln')
 | 
			
		||||
        utils.msvc_build(sln_file, 'libssh', ctx.target_path, ctx.bits_path, False)
 | 
			
		||||
| 
						 | 
				
			
			@ -233,8 +228,8 @@ class BuilderWin(BuilderBase):
 | 
			
		|||
        # fix source file
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls', 'config.h'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls'), os.path.join(self.MBEDTLS_PATH_SRC, 'include', 'mbedtls'), 'config.h')
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
        # utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        # utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
 | 
			
		||||
    def _build_libuv(self, file_name):
 | 
			
		||||
        cc.n('prepare libuv source code... ', end='')
 | 
			
		||||
| 
						 | 
				
			
			@ -245,10 +240,6 @@ class BuilderWin(BuilderBase):
 | 
			
		|||
        else:
 | 
			
		||||
            cc.w('already exists, skip.')
 | 
			
		||||
 | 
			
		||||
    def build_sqlite(self):
 | 
			
		||||
        cc.w('sqlite not need for Windows, skip.')
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def fix_output(self):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -390,8 +381,8 @@ class BuilderLinux(BuilderBase):
 | 
			
		|||
        # fix source file
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls', 'config.h'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls'), os.path.join(self.MBEDTLS_PATH_SRC, 'include', 'mbedtls'), 'config.h')
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
        # utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        # utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
 | 
			
		||||
        old_p = os.getcwd()
 | 
			
		||||
        os.chdir(self.MBEDTLS_PATH_SRC)
 | 
			
		||||
| 
						 | 
				
			
			@ -474,23 +465,6 @@ class BuilderLinux(BuilderBase):
 | 
			
		|||
        utils.copy_file(os.path.join(self.LIBSSH_PATH_SRC, 'build', 'src', 'threads'), os.path.join(self.PATH_RELEASE, 'lib'), 'libssh_threads.a')
 | 
			
		||||
        utils.copy_ex(os.path.join(self.LIBSSH_PATH_SRC, 'include'), os.path.join(self.PATH_RELEASE, 'include'), 'libssh')
 | 
			
		||||
 | 
			
		||||
    def _build_sqlite(self, file_name):
 | 
			
		||||
        if not os.path.exists(self.SQLITE_PATH_SRC):
 | 
			
		||||
            os.system('tar -zxvf "{}/{}" -C "{}"'.format(PATH_DOWNLOAD, file_name, self.PATH_TMP))
 | 
			
		||||
 | 
			
		||||
        cc.n('build sqlite static...', end='')
 | 
			
		||||
        if os.path.exists(os.path.join(self.PATH_RELEASE, 'lib', 'libsqlite3.a')):
 | 
			
		||||
            cc.w('already exists, skip.')
 | 
			
		||||
            return
 | 
			
		||||
        cc.v('')
 | 
			
		||||
 | 
			
		||||
        old_p = os.getcwd()
 | 
			
		||||
        os.chdir(self.SQLITE_PATH_SRC)
 | 
			
		||||
        os.system('./configure --prefix={}'.format(self.PATH_RELEASE))
 | 
			
		||||
        os.system('make')
 | 
			
		||||
        os.system('make install')
 | 
			
		||||
        os.chdir(old_p)
 | 
			
		||||
 | 
			
		||||
    def fix_output(self):
 | 
			
		||||
        # remove .so files, otherwise will link to .so but not .a in default.
 | 
			
		||||
        # rm = ['libsqlite3.la', 'libsqlite3.so.0', 'libsqlite3.so', 'libsqlite3.so.0.8.6', 'libuv.la', 'libuv.so.1', 'libuv.so', 'libuv.so.1.0.0']
 | 
			
		||||
| 
						 | 
				
			
			@ -551,7 +525,7 @@ class BuilderMacOS(BuilderBase):
 | 
			
		|||
 | 
			
		||||
        old_p = os.getcwd()
 | 
			
		||||
        os.chdir(self.OPENSSL_PATH_SRC)
 | 
			
		||||
        #os.system('./config --prefix={} --openssldir={}/openssl no-zlib no-shared'.format(self.PATH_RELEASE, self.PATH_RELEASE))
 | 
			
		||||
        # os.system('./config --prefix={} --openssldir={}/openssl no-zlib no-shared'.format(self.PATH_RELEASE, self.PATH_RELEASE))
 | 
			
		||||
        # os.system('./Configure darwin64-x86_64-cc')
 | 
			
		||||
        os.system('./Configure darwin64-x86_64-cc --prefix={} --openssldir={}/openssl -fPIC no-zlib no-shared'.format(self.PATH_RELEASE, self.PATH_RELEASE))
 | 
			
		||||
        os.system('make')
 | 
			
		||||
| 
						 | 
				
			
			@ -618,8 +592,8 @@ class BuilderMacOS(BuilderBase):
 | 
			
		|||
        # fix source file
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls', 'config.h'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'include', 'mbedtls'), os.path.join(self.MBEDTLS_PATH_SRC, 'include', 'mbedtls'), 'config.h')
 | 
			
		||||
        utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
        # utils.ensure_file_exists(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library', 'rsa.c'))
 | 
			
		||||
        # utils.copy_file(os.path.join(PATH_EXTERNAL, 'fix-external', 'mbedtls', 'library'), os.path.join(self.MBEDTLS_PATH_SRC, 'library'), 'rsa.c')
 | 
			
		||||
 | 
			
		||||
        old_p = os.getcwd()
 | 
			
		||||
        os.chdir(self.MBEDTLS_PATH_SRC)
 | 
			
		||||
| 
						 | 
				
			
			@ -699,23 +673,6 @@ class BuilderMacOS(BuilderBase):
 | 
			
		|||
        utils.copy_file(os.path.join(self.LIBSSH_PATH_SRC, 'build', 'src', 'threads'), os.path.join(self.PATH_RELEASE, 'lib'), 'libssh_threads.a')
 | 
			
		||||
        utils.copy_ex(os.path.join(self.LIBSSH_PATH_SRC, 'include'), os.path.join(self.PATH_RELEASE, 'include'), 'libssh')
 | 
			
		||||
 | 
			
		||||
    def _build_sqlite(self, file_name):
 | 
			
		||||
        if not os.path.exists(self.SQLITE_PATH_SRC):
 | 
			
		||||
            os.system('tar -zxvf "{}/{}" -C "{}"'.format(PATH_DOWNLOAD, file_name, self.PATH_TMP))
 | 
			
		||||
 | 
			
		||||
        cc.n('build sqlite static...', end='')
 | 
			
		||||
        if os.path.exists(os.path.join(self.PATH_RELEASE, 'lib', 'libsqlite3.a')):
 | 
			
		||||
            cc.w('already exists, skip.')
 | 
			
		||||
            return
 | 
			
		||||
        cc.v('')
 | 
			
		||||
 | 
			
		||||
        old_p = os.getcwd()
 | 
			
		||||
        os.chdir(self.SQLITE_PATH_SRC)
 | 
			
		||||
        os.system('./configure --prefix={}'.format(self.PATH_RELEASE))
 | 
			
		||||
        os.system('make')
 | 
			
		||||
        os.system('make install')
 | 
			
		||||
        os.chdir(old_p)
 | 
			
		||||
 | 
			
		||||
    def fix_output(self):
 | 
			
		||||
        # remove .so files, otherwise will link to .so but not .a in default.
 | 
			
		||||
        # rm = ['libsqlite3.la', 'libsqlite3.so.0', 'libsqlite3.so', 'libsqlite3.so.0.8.6', 'libuv.la', 'libuv.so.1', 'libuv.so', 'libuv.so.1.0.0']
 | 
			
		||||
| 
						 | 
				
			
			@ -768,9 +725,6 @@ def main():
 | 
			
		|||
    builder.build_mbedtls()
 | 
			
		||||
    builder.build_libssh()
 | 
			
		||||
 | 
			
		||||
    # do not need sqlite any more.
 | 
			
		||||
    # builder.build_sqlite()
 | 
			
		||||
 | 
			
		||||
    builder.fix_output()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -152,21 +152,22 @@ class PYSBaseWin(PYSBase):
 | 
			
		|||
        utils.makedirs(self.base_path)
 | 
			
		||||
 | 
			
		||||
        cc.v('copy python core dll...')
 | 
			
		||||
        _win_system_path = os.path.join(os.getenv('SystemRoot'), 'system32')
 | 
			
		||||
        if ctx.bits == BITS_32 and ctx.host_os_is_win_x64:
 | 
			
		||||
            _win_system_path = os.path.join(os.getenv('SystemRoot'), 'SysWOW64')
 | 
			
		||||
 | 
			
		||||
        if not os.path.exists(_win_system_path):
 | 
			
		||||
            raise RuntimeError('can not locate windows system folder at:', _win_system_path)
 | 
			
		||||
        # _win_system_path = os.path.join(os.getenv('SystemRoot'), 'system32')
 | 
			
		||||
        # if ctx.bits == BITS_32 and ctx.host_os_is_win_x64:
 | 
			
		||||
        #     _win_system_path = os.path.join(os.getenv('SystemRoot'), 'SysWOW64')
 | 
			
		||||
        #
 | 
			
		||||
        # if not os.path.exists(_win_system_path):
 | 
			
		||||
        #     raise RuntimeError('can not locate windows system folder at:', _win_system_path)
 | 
			
		||||
        _exec_path = os.path.dirname(sys.executable)
 | 
			
		||||
 | 
			
		||||
        pydll = self._get_py_dll_name()
 | 
			
		||||
        shutil.copy(os.path.join(_win_system_path, pydll), os.path.join(self.base_path, pydll))
 | 
			
		||||
        shutil.copy(os.path.join(_exec_path, pydll), os.path.join(self.base_path, pydll))
 | 
			
		||||
 | 
			
		||||
        if ctx.py_ver == '34':
 | 
			
		||||
            msvcrdll = 'msvcr100.dll'
 | 
			
		||||
        if ctx.py_ver == '37':
 | 
			
		||||
            msvcrdll = 'vcruntime140.dll'
 | 
			
		||||
        else:
 | 
			
		||||
            raise RuntimeError('unknown msvc runtime for this python version.')
 | 
			
		||||
        shutil.copy(os.path.join(_win_system_path, msvcrdll), os.path.join(self.base_path, msvcrdll))
 | 
			
		||||
        shutil.copy(os.path.join(_exec_path, msvcrdll), os.path.join(self.base_path, msvcrdll))
 | 
			
		||||
 | 
			
		||||
        super()._copy_modules()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,417 +0,0 @@
 | 
			
		|||
# -*- makefile -*-
 | 
			
		||||
# The file Setup is used by the makesetup script to construct the files
 | 
			
		||||
# Makefile and config.c, from Makefile.pre and config.c.in,
 | 
			
		||||
# respectively.  The file Setup itself is initially copied from
 | 
			
		||||
# Setup.dist; once it exists it will not be overwritten, so you can edit
 | 
			
		||||
# Setup to your heart's content.  Note that Makefile.pre is created
 | 
			
		||||
# from Makefile.pre.in by the toplevel configure script.
 | 
			
		||||
 | 
			
		||||
# (VPATH notes: Setup and Makefile.pre are in the build directory, as
 | 
			
		||||
# are Makefile and config.c; the *.in and *.dist files are in the source
 | 
			
		||||
# directory.)
 | 
			
		||||
 | 
			
		||||
# Each line in this file describes one or more optional modules.
 | 
			
		||||
# Modules enabled here will not be compiled by the setup.py script,
 | 
			
		||||
# so the file can be used to override setup.py's behavior.
 | 
			
		||||
 | 
			
		||||
# Lines have the following structure:
 | 
			
		||||
#
 | 
			
		||||
# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
 | 
			
		||||
#
 | 
			
		||||
# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
 | 
			
		||||
# <cpparg> is anything starting with -I, -D, -U or -C
 | 
			
		||||
# <library> is anything ending in .a or beginning with -l or -L
 | 
			
		||||
# <module> is anything else but should be a valid Python
 | 
			
		||||
# identifier (letters, digits, underscores, beginning with non-digit)
 | 
			
		||||
#
 | 
			
		||||
# (As the makesetup script changes, it may recognize some other
 | 
			
		||||
# arguments as well, e.g. *.so and *.sl as libraries.  See the big
 | 
			
		||||
# case statement in the makesetup script.)
 | 
			
		||||
#
 | 
			
		||||
# Lines can also have the form
 | 
			
		||||
#
 | 
			
		||||
# <name> = <value>
 | 
			
		||||
#
 | 
			
		||||
# which defines a Make variable definition inserted into Makefile.in
 | 
			
		||||
#
 | 
			
		||||
# Finally, if a line contains just the word "*shared*" (without the
 | 
			
		||||
# quotes but with the stars), then the following modules will not be
 | 
			
		||||
# built statically.  The build process works like this:
 | 
			
		||||
#
 | 
			
		||||
# 1. Build all modules that are declared as static in Modules/Setup,
 | 
			
		||||
#    combine them into libpythonxy.a, combine that into python.
 | 
			
		||||
# 2. Build all modules that are listed as shared in Modules/Setup.
 | 
			
		||||
# 3. Invoke setup.py. That builds all modules that
 | 
			
		||||
#    a) are not builtin, and
 | 
			
		||||
#    b) are not listed in Modules/Setup, and
 | 
			
		||||
#    c) can be build on the target
 | 
			
		||||
#
 | 
			
		||||
# Therefore, modules declared to be shared will not be
 | 
			
		||||
# included in the config.c file, nor in the list of objects to be
 | 
			
		||||
# added to the library archive, and their linker options won't be
 | 
			
		||||
# added to the linker options. Rules to create their .o files and
 | 
			
		||||
# their shared libraries will still be added to the Makefile, and
 | 
			
		||||
# their names will be collected in the Make variable SHAREDMODS.  This
 | 
			
		||||
# is used to build modules as shared libraries.  (They can be
 | 
			
		||||
# installed using "make sharedinstall", which is implied by the
 | 
			
		||||
# toplevel "make install" target.)  (For compatibility,
 | 
			
		||||
# *noconfig* has the same effect as *shared*.)
 | 
			
		||||
#
 | 
			
		||||
# In addition, *static* explicitly declares the following modules to
 | 
			
		||||
# be static.  Lines containing "*static*" and "*shared*" may thus
 | 
			
		||||
# alternate throughout this file.
 | 
			
		||||
 | 
			
		||||
# NOTE: As a standard policy, as many modules as can be supported by a
 | 
			
		||||
# platform should be present.  The distribution comes with all modules
 | 
			
		||||
# enabled that are supported by most platforms and don't require you
 | 
			
		||||
# to ftp sources from elsewhere.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Some special rules to define PYTHONPATH.
 | 
			
		||||
# Edit the definitions below to indicate which options you are using.
 | 
			
		||||
# Don't add any whitespace or comments!
 | 
			
		||||
 | 
			
		||||
# Directories where library files get installed.
 | 
			
		||||
# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
 | 
			
		||||
DESTLIB=$(LIBDEST)
 | 
			
		||||
MACHDESTLIB=$(BINLIBDEST)
 | 
			
		||||
 | 
			
		||||
# NOTE: all the paths are now relative to the prefix that is computed
 | 
			
		||||
# at run time!
 | 
			
		||||
 | 
			
		||||
# Standard path -- don't edit.
 | 
			
		||||
# No leading colon since this is the first entry.
 | 
			
		||||
# Empty since this is now just the runtime prefix.
 | 
			
		||||
DESTPATH=
 | 
			
		||||
 | 
			
		||||
# Site specific path components -- should begin with : if non-empty
 | 
			
		||||
SITEPATH=
 | 
			
		||||
 | 
			
		||||
# Standard path components for test modules
 | 
			
		||||
TESTPATH=
 | 
			
		||||
 | 
			
		||||
# Path components for machine- or system-dependent modules and shared libraries
 | 
			
		||||
MACHDEPPATH=:$(PLATDIR)
 | 
			
		||||
EXTRAMACHDEPPATH=
 | 
			
		||||
 | 
			
		||||
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)
 | 
			
		||||
PYTHONPATH=$(COREPYTHONPATH)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# The modules listed here can't be built as shared libraries for
 | 
			
		||||
# various reasons; therefore they are listed here instead of in the
 | 
			
		||||
# normal order.
 | 
			
		||||
 | 
			
		||||
# This only contains the minimal set of modules required to run the
 | 
			
		||||
# setup.py script in the root of the Python source tree.
 | 
			
		||||
 | 
			
		||||
posix posixmodule.c		# posix (UNIX) system calls
 | 
			
		||||
errno errnomodule.c		# posix (UNIX) errno values
 | 
			
		||||
pwd pwdmodule.c			# this is needed to find out the user's home dir
 | 
			
		||||
				# if $HOME is not set
 | 
			
		||||
_sre _sre.c			# Fredrik Lundh's new regular expressions
 | 
			
		||||
_codecs _codecsmodule.c		# access to the builtin codecs and codec registry
 | 
			
		||||
_weakref _weakref.c		# weak references
 | 
			
		||||
_functools _functoolsmodule.c   # Tools for working with functions and callable objects
 | 
			
		||||
_operator _operator.c	        # operator.add() and similar goodies
 | 
			
		||||
_collections _collectionsmodule.c # Container types
 | 
			
		||||
itertools itertoolsmodule.c    # Functions creating iterators for efficient looping
 | 
			
		||||
atexit atexitmodule.c      # Register functions to be run at interpreter-shutdown
 | 
			
		||||
_stat _stat.c			# stat.h interface
 | 
			
		||||
 | 
			
		||||
# access to ISO C locale support
 | 
			
		||||
_locale _localemodule.c  # -lintl
 | 
			
		||||
 | 
			
		||||
# Standard I/O baseline
 | 
			
		||||
_io -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
 | 
			
		||||
 | 
			
		||||
# The zipimport module is always imported at startup. Having it as a
 | 
			
		||||
# builtin module avoids some bootstrapping problems and reduces overhead.
 | 
			
		||||
zipimport zipimport.c
 | 
			
		||||
 | 
			
		||||
# faulthandler module
 | 
			
		||||
faulthandler faulthandler.c
 | 
			
		||||
 | 
			
		||||
# debug tool to trace memory blocks allocated by Python
 | 
			
		||||
_tracemalloc _tracemalloc.c hashtable.c
 | 
			
		||||
 | 
			
		||||
# The rest of the modules listed in this file are all commented out by
 | 
			
		||||
# default.  Usually they can be detected and built as dynamically
 | 
			
		||||
# loaded modules by the new setup.py script added in Python 2.1.  If
 | 
			
		||||
# you're on a platform that doesn't support dynamic loading, want to
 | 
			
		||||
# compile modules statically into the Python binary, or need to
 | 
			
		||||
# specify some odd set of compiler switches, you can uncomment the
 | 
			
		||||
# appropriate lines below.
 | 
			
		||||
 | 
			
		||||
# ======================================================================
 | 
			
		||||
 | 
			
		||||
# The Python symtable module depends on .h files that setup.py doesn't track
 | 
			
		||||
_symtable symtablemodule.c
 | 
			
		||||
 | 
			
		||||
# Uncommenting the following line tells makesetup that all following
 | 
			
		||||
# modules are to be built as shared libraries (see above for more
 | 
			
		||||
# detail; also note that *static* reverses this effect):
 | 
			
		||||
 | 
			
		||||
#*shared*
 | 
			
		||||
*static*
 | 
			
		||||
 | 
			
		||||
# GNU readline.  Unlike previous Python incarnations, GNU readline is
 | 
			
		||||
# now incorporated in an optional module, configured in the Setup file
 | 
			
		||||
# instead of by a configure script switch.  You may have to insert a
 | 
			
		||||
# -L option pointing to the directory where libreadline.* lives,
 | 
			
		||||
# and you may have to change -ltermcap to -ltermlib or perhaps remove
 | 
			
		||||
# it, depending on your system -- see the GNU readline instructions.
 | 
			
		||||
# It's okay for this to be a shared library, too.
 | 
			
		||||
 | 
			
		||||
#readline readline.c -lreadline -ltermcap
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Modules that should always be present (non UNIX dependent):
 | 
			
		||||
 | 
			
		||||
array arraymodule.c	# array objects
 | 
			
		||||
cmath cmathmodule.c _math.c # -lm # complex math library functions
 | 
			
		||||
math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
 | 
			
		||||
_struct _struct.c	# binary structure packing/unpacking
 | 
			
		||||
time timemodule.c # -lm # time operations and variables
 | 
			
		||||
_weakref _weakref.c	# basic weak reference support
 | 
			
		||||
#_testcapi _testcapimodule.c    # Python C API test module
 | 
			
		||||
_random _randommodule.c	# Random number generator
 | 
			
		||||
#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
 | 
			
		||||
_pickle _pickle.c	# pickle accelerator
 | 
			
		||||
_datetime _datetimemodule.c	# datetime accelerator
 | 
			
		||||
_bisect _bisectmodule.c	# Bisection algorithms
 | 
			
		||||
_heapq _heapqmodule.c	# Heap queue algorithm
 | 
			
		||||
 | 
			
		||||
unicodedata unicodedata.c    # static Unicode character database
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Modules with some UNIX dependencies -- on by default:
 | 
			
		||||
# (If you have a really backward UNIX, select and socket may not be
 | 
			
		||||
# supported...)
 | 
			
		||||
 | 
			
		||||
fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
 | 
			
		||||
spwd spwdmodule.c		# spwd(3)
 | 
			
		||||
grp grpmodule.c		# grp(3)
 | 
			
		||||
select selectmodule.c	# select(2); not on ancient System V
 | 
			
		||||
 | 
			
		||||
# Memory-mapped files (also works on Win32).
 | 
			
		||||
mmap mmapmodule.c
 | 
			
		||||
 | 
			
		||||
# CSV file helper
 | 
			
		||||
_csv _csv.c
 | 
			
		||||
 | 
			
		||||
# Socket module helper for socket(2)
 | 
			
		||||
_socket socketmodule.c
 | 
			
		||||
 | 
			
		||||
# Socket module helper for SSL support; you must comment out the other
 | 
			
		||||
# socket line above, and possibly edit the SSL variable:
 | 
			
		||||
SSL=$(srcdir)/../../release
 | 
			
		||||
_ssl _ssl.c \
 | 
			
		||||
	-DUSE_SSL -I$(SSL)/include \
 | 
			
		||||
	$(SSL)/lib/libssl.a $(SSL)/lib/libcrypto.a
 | 
			
		||||
# -lssl -lcrypto
 | 
			
		||||
 | 
			
		||||
# The crypt module is now disabled by default because it breaks builds
 | 
			
		||||
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
 | 
			
		||||
#
 | 
			
		||||
# First, look at Setup.config; configure may have set this for you.
 | 
			
		||||
 | 
			
		||||
#_crypt _cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Some more UNIX dependent modules -- off by default, since these
 | 
			
		||||
# are not supported by all UNIX systems:
 | 
			
		||||
 | 
			
		||||
#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
 | 
			
		||||
termios termios.c	# Steen Lumholt's termios module
 | 
			
		||||
resource resource.c	# Jeremy Hylton's rlimit interface
 | 
			
		||||
 | 
			
		||||
_posixsubprocess _posixsubprocess.c  # POSIX subprocess module helper
 | 
			
		||||
 | 
			
		||||
# Multimedia modules -- off by default.
 | 
			
		||||
# These don't work for 64-bit platforms!!!
 | 
			
		||||
# #993173 says audioop works on 64-bit platforms, though.
 | 
			
		||||
# These represent audio samples or images as strings:
 | 
			
		||||
 | 
			
		||||
#audioop audioop.c	# Operations on audio samples
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Note that the _md5 and _sha modules are normally only built if the
 | 
			
		||||
# system does not have the OpenSSL libs containing an optimized version.
 | 
			
		||||
 | 
			
		||||
# The _md5 module implements the RSA Data Security, Inc. MD5
 | 
			
		||||
# Message-Digest Algorithm, described in RFC 1321.
 | 
			
		||||
 | 
			
		||||
_md5 md5module.c
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# The _sha module implements the SHA checksum algorithms.
 | 
			
		||||
# (NIST's Secure Hash Algorithms.)
 | 
			
		||||
_sha1 sha1module.c
 | 
			
		||||
_sha256 sha256module.c
 | 
			
		||||
_sha512 sha512module.c
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# The _tkinter module.
 | 
			
		||||
#
 | 
			
		||||
# The command for _tkinter is long and site specific.  Please
 | 
			
		||||
# uncomment and/or edit those parts as indicated.  If you don't have a
 | 
			
		||||
# specific extension (e.g. Tix or BLT), leave the corresponding line
 | 
			
		||||
# commented out.  (Leave the trailing backslashes in!  If you
 | 
			
		||||
# experience strange errors, you may want to join all uncommented
 | 
			
		||||
# lines and remove the backslashes -- the backslash interpretation is
 | 
			
		||||
# done by the shell's "read" command and it may not be implemented on
 | 
			
		||||
# every system.
 | 
			
		||||
 | 
			
		||||
# *** Always uncomment this (leave the leading underscore in!):
 | 
			
		||||
# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
 | 
			
		||||
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
 | 
			
		||||
#	-L/usr/local/lib \
 | 
			
		||||
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
 | 
			
		||||
#	-I/usr/local/include \
 | 
			
		||||
# *** Uncomment and edit to reflect where your X11 header files are:
 | 
			
		||||
#	-I/usr/X11R6/include \
 | 
			
		||||
# *** Or uncomment this for Solaris:
 | 
			
		||||
#	-I/usr/openwin/include \
 | 
			
		||||
# *** Uncomment and edit for Tix extension only:
 | 
			
		||||
#	-DWITH_TIX -ltix8.1.8.2 \
 | 
			
		||||
# *** Uncomment and edit for BLT extension only:
 | 
			
		||||
#	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
 | 
			
		||||
# *** Uncomment and edit for PIL (TkImaging) extension only:
 | 
			
		||||
#     (See http://www.pythonware.com/products/pil/ for more info)
 | 
			
		||||
#	-DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
 | 
			
		||||
# *** Uncomment and edit for TOGL extension only:
 | 
			
		||||
#	-DWITH_TOGL togl.c \
 | 
			
		||||
# *** Uncomment and edit to reflect your Tcl/Tk versions:
 | 
			
		||||
#	-ltk8.2 -ltcl8.2 \
 | 
			
		||||
# *** Uncomment and edit to reflect where your X11 libraries are:
 | 
			
		||||
#	-L/usr/X11R6/lib \
 | 
			
		||||
# *** Or uncomment this for Solaris:
 | 
			
		||||
#	-L/usr/openwin/lib \
 | 
			
		||||
# *** Uncomment these for TOGL extension only:
 | 
			
		||||
#	-lGL -lGLU -lXext -lXmu \
 | 
			
		||||
# *** Uncomment for AIX:
 | 
			
		||||
#	-lld \
 | 
			
		||||
# *** Always uncomment this; X11 libraries to link with:
 | 
			
		||||
#	-lX11
 | 
			
		||||
 | 
			
		||||
# Lance Ellinghaus's syslog module
 | 
			
		||||
syslog syslogmodule.c		# syslog daemon interface
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Curses support, requiring the System V version of curses, often
 | 
			
		||||
# provided by the ncurses library.  e.g. on Linux, link with -lncurses
 | 
			
		||||
# instead of -lcurses).
 | 
			
		||||
#
 | 
			
		||||
# First, look at Setup.config; configure may have set this for you.
 | 
			
		||||
 | 
			
		||||
#_curses _cursesmodule.c -lcurses -ltermcap
 | 
			
		||||
# Wrapper for the panel library that's part of ncurses and SYSV curses.
 | 
			
		||||
#_curses_panel _curses_panel.c -lpanel -lncurses
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Modules that provide persistent dictionary-like semantics.  You will
 | 
			
		||||
# probably want to arrange for at least one of them to be available on
 | 
			
		||||
# your machine, though none are defined by default because of library
 | 
			
		||||
# dependencies.  The Python module dbm/__init__.py provides an
 | 
			
		||||
# implementation independent wrapper for these; dbm/dumb.py provides
 | 
			
		||||
# similar functionality (but slower of course) implemented in Python.
 | 
			
		||||
 | 
			
		||||
# The standard Unix dbm module has been moved to Setup.config so that
 | 
			
		||||
# it will be compiled as a shared library by default.  Compiling it as
 | 
			
		||||
# a built-in module causes conflicts with the pybsddb3 module since it
 | 
			
		||||
# creates a static dependency on an out-of-date version of db.so.
 | 
			
		||||
#
 | 
			
		||||
# First, look at Setup.config; configure may have set this for you.
 | 
			
		||||
 | 
			
		||||
#_dbm _dbmmodule.c 	# dbm(3) may require -lndbm or similar
 | 
			
		||||
 | 
			
		||||
# Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
 | 
			
		||||
#
 | 
			
		||||
# First, look at Setup.config; configure may have set this for you.
 | 
			
		||||
 | 
			
		||||
#_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Helper module for various ascii-encoders
 | 
			
		||||
binascii binascii.c
 | 
			
		||||
 | 
			
		||||
# Fred Drake's interface to the Python parser
 | 
			
		||||
#parser parsermodule.c
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Lee Busby's SIGFPE modules.
 | 
			
		||||
# The library to link fpectl with is platform specific.
 | 
			
		||||
# Choose *one* of the options below for fpectl:
 | 
			
		||||
 | 
			
		||||
# For SGI IRIX (tested on 5.3):
 | 
			
		||||
#fpectl fpectlmodule.c -lfpe
 | 
			
		||||
 | 
			
		||||
# For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
 | 
			
		||||
# (Without the compiler you don't have -lsunmath.)
 | 
			
		||||
#fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
 | 
			
		||||
 | 
			
		||||
# For other systems: see instructions in fpectlmodule.c.
 | 
			
		||||
#fpectl fpectlmodule.c ...
 | 
			
		||||
 | 
			
		||||
# Test module for fpectl.  No extra libraries needed.
 | 
			
		||||
#fpetest fpetestmodule.c
 | 
			
		||||
 | 
			
		||||
# Andrew Kuchling's zlib module.
 | 
			
		||||
# This require zlib 1.1.3 (or later).
 | 
			
		||||
# See http://www.gzip.org/zlib/
 | 
			
		||||
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
 | 
			
		||||
 | 
			
		||||
# Interface to the Expat XML parser
 | 
			
		||||
#
 | 
			
		||||
# Expat was written by James Clark and is now maintained by a group of
 | 
			
		||||
# developers on SourceForge; see www.libexpat.org for more
 | 
			
		||||
# information.  The pyexpat module was written by Paul Prescod after a
 | 
			
		||||
# prototype by Jack Jansen.  Source of Expat 1.95.2 is included in
 | 
			
		||||
# Modules/expat/.  Usage of a system shared libexpat.so/expat.dll is
 | 
			
		||||
# not advised.
 | 
			
		||||
#
 | 
			
		||||
# More information on Expat can be found at www.libexpat.org.
 | 
			
		||||
#
 | 
			
		||||
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
 | 
			
		||||
 | 
			
		||||
# Hye-Shik Chang's CJKCodecs
 | 
			
		||||
 | 
			
		||||
# multibytecodec is required for all the other CJK codec modules
 | 
			
		||||
_multibytecodec cjkcodecs/multibytecodec.c
 | 
			
		||||
 | 
			
		||||
_codecs_cn cjkcodecs/_codecs_cn.c
 | 
			
		||||
_codecs_hk cjkcodecs/_codecs_hk.c
 | 
			
		||||
_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
 | 
			
		||||
_codecs_jp cjkcodecs/_codecs_jp.c
 | 
			
		||||
_codecs_kr cjkcodecs/_codecs_kr.c
 | 
			
		||||
_codecs_tw cjkcodecs/_codecs_tw.c
 | 
			
		||||
 | 
			
		||||
# Example -- included for reference only:
 | 
			
		||||
# xx xxmodule.c
 | 
			
		||||
 | 
			
		||||
# Another example -- the 'xxsubtype' module shows C-level subtyping in action
 | 
			
		||||
#xxsubtype xxsubtype.c
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
########################################################################
 | 
			
		||||
# add extra-module by apex.
 | 
			
		||||
########################################################################
 | 
			
		||||
 | 
			
		||||
zlib zlibmodule.c -I$(srcdir)/Modules/zlib \
 | 
			
		||||
	zlib/adler32.c zlib/crc32.c zlib/deflate.c zlib/infback.c zlib/inffast.c zlib/inflate.c zlib/inftrees.c zlib/trees.c zlib/zutil.c \
 | 
			
		||||
	zlib/compress.c zlib/uncompr.c zlib/gzclose.c zlib/gzlib.c zlib/gzread.c zlib/gzwrite.c
 | 
			
		||||
 | 
			
		||||
#_psutil_linux psutil/_psutil_linux.c
 | 
			
		||||
#_psutil_posix psutil/_psutil_posix.c
 | 
			
		||||
 | 
			
		||||
_json _json.c
 | 
			
		||||
 | 
			
		||||
_sqlite3 -I$(srcdir)/Modules/_sqlite/sqlite3 -I$(srcdir)/Modules/_sqlite \
 | 
			
		||||
	$(srcdir)/Modules/_sqlite/sqlite3/sqlite3.c \
 | 
			
		||||
	_sqlite/cache.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c \
 | 
			
		||||
	_sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c
 | 
			
		||||
 | 
			
		||||
# EXTRA_CFLAGS=-DMODULE_NAME='"sqlite3"' -DPSUTIL_VERSION=420
 | 
			
		||||
#EXTRA_CFLAGS=-DPSUTIL_VERSION=420
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,75 +0,0 @@
 | 
			
		|||
/* cache.h - definitions for the LRU cache
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (C) 2004-2010 Gerhard Häring <gh@ghaering.de>
 | 
			
		||||
 *
 | 
			
		||||
 * This file is part of pysqlite.
 | 
			
		||||
 *
 | 
			
		||||
 * This software is provided 'as-is', without any express or implied
 | 
			
		||||
 * warranty.  In no event will the authors be held liable for any damages
 | 
			
		||||
 * arising from the use of this software.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is granted to anyone to use this software for any purpose,
 | 
			
		||||
 * including commercial applications, and to alter it and redistribute it
 | 
			
		||||
 * freely, subject to the following restrictions:
 | 
			
		||||
 *
 | 
			
		||||
 * 1. The origin of this software must not be misrepresented; you must not
 | 
			
		||||
 *    claim that you wrote the original software. If you use this software
 | 
			
		||||
 *    in a product, an acknowledgment in the product documentation would be
 | 
			
		||||
 *    appreciated but is not required.
 | 
			
		||||
 * 2. Altered source versions must be plainly marked as such, and must not be
 | 
			
		||||
 *    misrepresented as being the original software.
 | 
			
		||||
 * 3. This notice may not be removed or altered from any source distribution.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef PYSQLITE_CACHE_H
 | 
			
		||||
#define PYSQLITE_CACHE_H
 | 
			
		||||
#include "Python.h"
 | 
			
		||||
 | 
			
		||||
#define MODULE_NAME "sqlite3"
 | 
			
		||||
 | 
			
		||||
/* The LRU cache is implemented as a combination of a doubly-linked with a
 | 
			
		||||
 * dictionary. The list items are of type 'Node' and the dictionary has the
 | 
			
		||||
 * nodes as values. */
 | 
			
		||||
 | 
			
		||||
typedef struct _pysqlite_Node
 | 
			
		||||
{
 | 
			
		||||
    PyObject_HEAD
 | 
			
		||||
    PyObject* key;
 | 
			
		||||
    PyObject* data;
 | 
			
		||||
    long count;
 | 
			
		||||
    struct _pysqlite_Node* prev;
 | 
			
		||||
    struct _pysqlite_Node* next;
 | 
			
		||||
} pysqlite_Node;
 | 
			
		||||
 | 
			
		||||
typedef struct
 | 
			
		||||
{
 | 
			
		||||
    PyObject_HEAD
 | 
			
		||||
    int size;
 | 
			
		||||
 | 
			
		||||
    /* a dictionary mapping keys to Node entries */
 | 
			
		||||
    PyObject* mapping;
 | 
			
		||||
 | 
			
		||||
    /* the factory callable */
 | 
			
		||||
    PyObject* factory;
 | 
			
		||||
 | 
			
		||||
    pysqlite_Node* first;
 | 
			
		||||
    pysqlite_Node* last;
 | 
			
		||||
 | 
			
		||||
    /* if set, decrement the factory function when the Cache is deallocated.
 | 
			
		||||
     * this is almost always desirable, but not in the pysqlite context */
 | 
			
		||||
    int decref_factory;
 | 
			
		||||
} pysqlite_Cache;
 | 
			
		||||
 | 
			
		||||
extern PyTypeObject pysqlite_NodeType;
 | 
			
		||||
extern PyTypeObject pysqlite_CacheType;
 | 
			
		||||
 | 
			
		||||
int pysqlite_node_init(pysqlite_Node* self, PyObject* args, PyObject* kwargs);
 | 
			
		||||
void pysqlite_node_dealloc(pysqlite_Node* self);
 | 
			
		||||
 | 
			
		||||
int pysqlite_cache_init(pysqlite_Cache* self, PyObject* args, PyObject* kwargs);
 | 
			
		||||
void pysqlite_cache_dealloc(pysqlite_Cache* self);
 | 
			
		||||
PyObject* pysqlite_cache_get(pysqlite_Cache* self, PyObject* args);
 | 
			
		||||
 | 
			
		||||
int pysqlite_cache_setup_types(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -1,43 +0,0 @@
 | 
			
		|||
/* prepare_protocol.h - the protocol for preparing values for SQLite
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (C) 2005-2010 Gerhard Häring <gh@ghaering.de>
 | 
			
		||||
 *
 | 
			
		||||
 * This file is part of pysqlite.
 | 
			
		||||
 *
 | 
			
		||||
 * This software is provided 'as-is', without any express or implied
 | 
			
		||||
 * warranty.  In no event will the authors be held liable for any damages
 | 
			
		||||
 * arising from the use of this software.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is granted to anyone to use this software for any purpose,
 | 
			
		||||
 * including commercial applications, and to alter it and redistribute it
 | 
			
		||||
 * freely, subject to the following restrictions:
 | 
			
		||||
 *
 | 
			
		||||
 * 1. The origin of this software must not be misrepresented; you must not
 | 
			
		||||
 *    claim that you wrote the original software. If you use this software
 | 
			
		||||
 *    in a product, an acknowledgment in the product documentation would be
 | 
			
		||||
 *    appreciated but is not required.
 | 
			
		||||
 * 2. Altered source versions must be plainly marked as such, and must not be
 | 
			
		||||
 *    misrepresented as being the original software.
 | 
			
		||||
 * 3. This notice may not be removed or altered from any source distribution.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef PYSQLITE_PREPARE_PROTOCOL_H
 | 
			
		||||
#define PYSQLITE_PREPARE_PROTOCOL_H
 | 
			
		||||
#include "Python.h"
 | 
			
		||||
 | 
			
		||||
#define MODULE_NAME "sqlite3"
 | 
			
		||||
 | 
			
		||||
typedef struct
 | 
			
		||||
{
 | 
			
		||||
    PyObject_HEAD
 | 
			
		||||
} pysqlite_PrepareProtocol;
 | 
			
		||||
 | 
			
		||||
extern PyTypeObject pysqlite_PrepareProtocolType;
 | 
			
		||||
 | 
			
		||||
int pysqlite_prepare_protocol_init(pysqlite_PrepareProtocol* self, PyObject* args, PyObject* kwargs);
 | 
			
		||||
void pysqlite_prepare_protocol_dealloc(pysqlite_PrepareProtocol* self);
 | 
			
		||||
 | 
			
		||||
int pysqlite_prepare_protocol_setup_types(void);
 | 
			
		||||
 | 
			
		||||
#define UNKNOWN (-1)
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -31,9 +31,6 @@
 | 
			
		|||
#include "libssh/crypto.h"
 | 
			
		||||
#include "libssh/server.h"
 | 
			
		||||
#include "libssh/socket.h"
 | 
			
		||||
#ifdef WITH_SSH1
 | 
			
		||||
#include "libssh/ssh1.h"
 | 
			
		||||
#endif /* WITH_SSH1 */
 | 
			
		||||
#include "libssh/ssh2.h"
 | 
			
		||||
#include "libssh/agent.h"
 | 
			
		||||
#include "libssh/packet.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -63,11 +60,10 @@ ssh_session ssh_new(void) {
 | 
			
		|||
  char *id = NULL;
 | 
			
		||||
  int rc;
 | 
			
		||||
 | 
			
		||||
  session = malloc(sizeof (struct ssh_session_struct));
 | 
			
		||||
  session = calloc(1, sizeof (struct ssh_session_struct));
 | 
			
		||||
  if (session == NULL) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  ZERO_STRUCTP(session);
 | 
			
		||||
 | 
			
		||||
  session->next_crypto = crypto_new();
 | 
			
		||||
  if (session->next_crypto == NULL) {
 | 
			
		||||
| 
						 | 
				
			
			@ -90,12 +86,12 @@ ssh_session ssh_new(void) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  session->alive = 0;
 | 
			
		||||
  session->auth_methods = 0;
 | 
			
		||||
  session->auth.supported_methods = 0;
 | 
			
		||||
  ssh_set_blocking(session, 1);
 | 
			
		||||
  session->maxchannel = FIRST_CHANNEL;
 | 
			
		||||
 | 
			
		||||
#ifndef _WIN32
 | 
			
		||||
    session->agent = agent_new(session);
 | 
			
		||||
    session->agent = ssh_agent_new(session);
 | 
			
		||||
    if (session->agent == NULL) {
 | 
			
		||||
      goto err;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -105,14 +101,10 @@ ssh_session ssh_new(void) {
 | 
			
		|||
    session->opts.StrictHostKeyChecking = 1;
 | 
			
		||||
    session->opts.port = 0;
 | 
			
		||||
    session->opts.fd = -1;
 | 
			
		||||
    session->opts.ssh2 = 1;
 | 
			
		||||
    session->opts.compressionlevel=7;
 | 
			
		||||
#ifdef WITH_SSH1
 | 
			
		||||
    session->opts.ssh1 = 1;
 | 
			
		||||
#else
 | 
			
		||||
    session->opts.ssh1 = 0;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    session->opts.nodelay = 0;
 | 
			
		||||
    session->opts.flags = SSH_OPT_FLAG_PASSWORD_AUTH | SSH_OPT_FLAG_PUBKEY_AUTH |
 | 
			
		||||
            SSH_OPT_FLAG_KBDINT_AUTH | SSH_OPT_FLAG_GSSAPI_AUTH;
 | 
			
		||||
    session->opts.identity = ssh_list_new();
 | 
			
		||||
    if (session->opts.identity == NULL) {
 | 
			
		||||
      goto err;
 | 
			
		||||
| 
						 | 
				
			
			@ -147,6 +139,7 @@ ssh_session ssh_new(void) {
 | 
			
		|||
      goto err;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_DSA
 | 
			
		||||
    id = strdup("%d/id_dsa");
 | 
			
		||||
    if (id == NULL) {
 | 
			
		||||
      goto err;
 | 
			
		||||
| 
						 | 
				
			
			@ -155,15 +148,7 @@ ssh_session ssh_new(void) {
 | 
			
		|||
    if (rc == SSH_ERROR) {
 | 
			
		||||
      goto err;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    id = strdup("%d/identity");
 | 
			
		||||
    if (id == NULL) {
 | 
			
		||||
      goto err;
 | 
			
		||||
    }
 | 
			
		||||
    rc = ssh_list_append(session->opts.identity, id);
 | 
			
		||||
    if (rc == SSH_ERROR) {
 | 
			
		||||
      goto err;
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    return session;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -234,7 +219,7 @@ void ssh_free(ssh_session session) {
 | 
			
		|||
  crypto_free(session->next_crypto);
 | 
			
		||||
 | 
			
		||||
#ifndef _WIN32
 | 
			
		||||
  agent_free(session->agent);
 | 
			
		||||
  ssh_agent_free(session->agent);
 | 
			
		||||
#endif /* _WIN32 */
 | 
			
		||||
 | 
			
		||||
  ssh_key_free(session->srv.dsa_key);
 | 
			
		||||
| 
						 | 
				
			
			@ -257,6 +242,10 @@ void ssh_free(ssh_session session) {
 | 
			
		|||
      ssh_list_free(session->ssh_message_list);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (session->kbdint != NULL) {
 | 
			
		||||
    ssh_kbdint_free(session->kbdint);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (session->packet_callbacks) {
 | 
			
		||||
    ssh_list_free(session->packet_callbacks);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			@ -278,7 +267,7 @@ void ssh_free(ssh_session session) {
 | 
			
		|||
#endif
 | 
			
		||||
  session->agent_state = NULL;
 | 
			
		||||
 | 
			
		||||
  SAFE_FREE(session->auth_auto_state);
 | 
			
		||||
  SAFE_FREE(session->auth.auto_state);
 | 
			
		||||
  SAFE_FREE(session->serverbanner);
 | 
			
		||||
  SAFE_FREE(session->clientbanner);
 | 
			
		||||
  SAFE_FREE(session->banner);
 | 
			
		||||
| 
						 | 
				
			
			@ -289,6 +278,7 @@ void ssh_free(ssh_session session) {
 | 
			
		|||
  SAFE_FREE(session->opts.host);
 | 
			
		||||
  SAFE_FREE(session->opts.sshdir);
 | 
			
		||||
  SAFE_FREE(session->opts.knownhosts);
 | 
			
		||||
  SAFE_FREE(session->opts.global_knownhosts);
 | 
			
		||||
  SAFE_FREE(session->opts.ProxyCommand);
 | 
			
		||||
  SAFE_FREE(session->opts.gss_server_identity);
 | 
			
		||||
  SAFE_FREE(session->opts.gss_client_identity);
 | 
			
		||||
| 
						 | 
				
			
			@ -300,7 +290,7 @@ void ssh_free(ssh_session session) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  /* burn connection, it could contain sensitive data */
 | 
			
		||||
  BURN_BUFFER(session, sizeof(struct ssh_session_struct));
 | 
			
		||||
  explicit_bzero(session, sizeof(struct ssh_session_struct));
 | 
			
		||||
  SAFE_FREE(session);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -353,6 +343,12 @@ const char* ssh_get_kex_algo(ssh_session session) {
 | 
			
		|||
            return "diffie-hellman-group14-sha1";
 | 
			
		||||
        case SSH_KEX_ECDH_SHA2_NISTP256:
 | 
			
		||||
            return "ecdh-sha2-nistp256";
 | 
			
		||||
        case SSH_KEX_ECDH_SHA2_NISTP384:
 | 
			
		||||
            return "ecdh-sha2-nistp384";
 | 
			
		||||
        case SSH_KEX_ECDH_SHA2_NISTP521:
 | 
			
		||||
            return "ecdh-sha2-nistp521";
 | 
			
		||||
        case SSH_KEX_CURVE25519_SHA256:
 | 
			
		||||
           return "curve25519-sha256";
 | 
			
		||||
        case SSH_KEX_CURVE25519_SHA256_LIBSSH_ORG:
 | 
			
		||||
            return "curve25519-sha256@libssh.org";
 | 
			
		||||
        default:
 | 
			
		||||
| 
						 | 
				
			
			@ -798,14 +794,14 @@ const char *ssh_get_disconnect_message(ssh_session session) {
 | 
			
		|||
 *
 | 
			
		||||
 * @param session       The ssh session to use.
 | 
			
		||||
 *
 | 
			
		||||
 * @return 1 or 2, for ssh1 or ssh2, < 0 on error.
 | 
			
		||||
 * @return The SSH version as integer, < 0 on error.
 | 
			
		||||
 */
 | 
			
		||||
int ssh_get_version(ssh_session session) {
 | 
			
		||||
  if (session == NULL) {
 | 
			
		||||
    return -1;
 | 
			
		||||
  }
 | 
			
		||||
    if (session == NULL) {
 | 
			
		||||
        return -1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  return session->version;
 | 
			
		||||
    return 2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -836,11 +832,7 @@ void ssh_socket_exception_callback(int code, int errno_code, void *user){
 | 
			
		|||
 * @return              SSH_OK on success, SSH_ERROR otherwise.
 | 
			
		||||
 */
 | 
			
		||||
int ssh_send_ignore (ssh_session session, const char *data) {
 | 
			
		||||
#ifdef WITH_SSH1
 | 
			
		||||
    const int type = session->version == 1 ? SSH_MSG_IGNORE : SSH2_MSG_IGNORE;
 | 
			
		||||
#else /* WITH_SSH1 */
 | 
			
		||||
    const int type = SSH2_MSG_IGNORE;
 | 
			
		||||
#endif /* WITH_SSH1 */
 | 
			
		||||
    int rc;
 | 
			
		||||
 | 
			
		||||
    if (ssh_socket_is_open(session->socket)) {
 | 
			
		||||
| 
						 | 
				
			
			@ -852,7 +844,7 @@ int ssh_send_ignore (ssh_session session, const char *data) {
 | 
			
		|||
            ssh_set_error_oom(session);
 | 
			
		||||
            goto error;
 | 
			
		||||
        }
 | 
			
		||||
        packet_send(session);
 | 
			
		||||
        ssh_packet_send(session);
 | 
			
		||||
        ssh_handle_packets(session, 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -878,27 +870,17 @@ int ssh_send_debug (ssh_session session, const char *message, int always_display
 | 
			
		|||
    int rc;
 | 
			
		||||
 | 
			
		||||
    if (ssh_socket_is_open(session->socket)) {
 | 
			
		||||
#ifdef WITH_SSH1
 | 
			
		||||
        if (session->version == 1) {
 | 
			
		||||
            rc = ssh_buffer_pack(session->out_buffer,
 | 
			
		||||
                                 "bs",
 | 
			
		||||
                                 SSH_MSG_DEBUG,
 | 
			
		||||
                                 message);
 | 
			
		||||
        } else
 | 
			
		||||
#endif /* WITH_SSH1 */
 | 
			
		||||
        {
 | 
			
		||||
            rc = ssh_buffer_pack(session->out_buffer,
 | 
			
		||||
                                 "bbsd",
 | 
			
		||||
                                 SSH2_MSG_DEBUG,
 | 
			
		||||
                                 always_display != 0 ? 1 : 0,
 | 
			
		||||
                                 message,
 | 
			
		||||
                                 0); /* empty language tag */
 | 
			
		||||
        }
 | 
			
		||||
        rc = ssh_buffer_pack(session->out_buffer,
 | 
			
		||||
                             "bbsd",
 | 
			
		||||
                             SSH2_MSG_DEBUG,
 | 
			
		||||
                             always_display != 0 ? 1 : 0,
 | 
			
		||||
                             message,
 | 
			
		||||
                             0); /* empty language tag */
 | 
			
		||||
        if (rc != SSH_OK) {
 | 
			
		||||
            ssh_set_error_oom(session);
 | 
			
		||||
            goto error;
 | 
			
		||||
        }
 | 
			
		||||
        packet_send(session);
 | 
			
		||||
        ssh_packet_send(session);
 | 
			
		||||
        ssh_handle_packets(session, 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -949,5 +931,3 @@ void ssh_set_counters(ssh_session session, ssh_counter scounter,
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
 | 
			
		||||
/* vim: set ts=4 sw=4 et cindent: */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,14 +1,14 @@
 | 
			
		|||
/**
 | 
			
		||||
 * \file config.h
 | 
			
		||||
 #### v2.6.1
 | 
			
		||||
 *
 | 
			
		||||
 * \brief Configuration options (set of defines)
 | 
			
		||||
 *
 | 
			
		||||
 *  This set of compile-time options may be used to enable
 | 
			
		||||
 *  or disable features selectively, and reduce the global
 | 
			
		||||
 *  memory footprint.
 | 
			
		||||
 *
 | 
			
		||||
 *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
 | 
			
		||||
 */
 | 
			
		||||
/*
 | 
			
		||||
 *  Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
 | 
			
		||||
 *  SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 *
 | 
			
		||||
 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
 | 
			
		||||
| 
						 | 
				
			
			@ -48,10 +48,14 @@
 | 
			
		|||
 * Requires support for asm() in compiler.
 | 
			
		||||
 *
 | 
			
		||||
 * Used in:
 | 
			
		||||
 *      library/aria.c
 | 
			
		||||
 *      library/timing.c
 | 
			
		||||
 *      library/padlock.c
 | 
			
		||||
 *      include/mbedtls/bn_mul.h
 | 
			
		||||
 *
 | 
			
		||||
 * Required by:
 | 
			
		||||
 *      MBEDTLS_AESNI_C
 | 
			
		||||
 *      MBEDTLS_PADLOCK_C
 | 
			
		||||
 *
 | 
			
		||||
 * Comment to disable the use of assembly code.
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_HAVE_ASM
 | 
			
		||||
| 
						 | 
				
			
			@ -84,6 +88,28 @@
 | 
			
		|||
 */
 | 
			
		||||
//#define MBEDTLS_NO_UDBL_DIVISION
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_NO_64BIT_MULTIPLICATION
 | 
			
		||||
 *
 | 
			
		||||
 * The platform lacks support for 32x32 -> 64-bit multiplication.
 | 
			
		||||
 *
 | 
			
		||||
 * Used in:
 | 
			
		||||
 *      library/poly1305.c
 | 
			
		||||
 *
 | 
			
		||||
 * Some parts of the library may use multiplication of two unsigned 32-bit
 | 
			
		||||
 * operands with a 64-bit result in order to speed up computations. On some
 | 
			
		||||
 * platforms, this is not available in hardware and has to be implemented in
 | 
			
		||||
 * software, usually in a library provided by the toolchain.
 | 
			
		||||
 *
 | 
			
		||||
 * Sometimes it is not desirable to have to link to that library. This option
 | 
			
		||||
 * removes the dependency of that library on platforms that lack a hardware
 | 
			
		||||
 * 64-bit multiplier by embedding a software implementation in Mbed TLS.
 | 
			
		||||
 *
 | 
			
		||||
 * Note that depending on the compiler, this may decrease performance compared
 | 
			
		||||
 * to using the library function provided by the toolchain.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_NO_64BIT_MULTIPLICATION
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_HAVE_SSE2
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -262,20 +288,38 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Uncomment a macro to enable alternate implementation of the corresponding
 | 
			
		||||
 * module.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   MD2, MD4, MD5, ARC4, DES and SHA-1 are considered weak and their
 | 
			
		||||
 *            use constitutes a security risk. If possible, we recommend
 | 
			
		||||
 *            avoiding dependencies on them, and considering stronger message
 | 
			
		||||
 *            digests and ciphers instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_AES_ALT
 | 
			
		||||
//#define MBEDTLS_ARC4_ALT
 | 
			
		||||
//#define MBEDTLS_ARIA_ALT
 | 
			
		||||
//#define MBEDTLS_BLOWFISH_ALT
 | 
			
		||||
//#define MBEDTLS_CAMELLIA_ALT
 | 
			
		||||
//#define MBEDTLS_CCM_ALT
 | 
			
		||||
//#define MBEDTLS_CHACHA20_ALT
 | 
			
		||||
//#define MBEDTLS_CHACHAPOLY_ALT
 | 
			
		||||
//#define MBEDTLS_CMAC_ALT
 | 
			
		||||
//#define MBEDTLS_DES_ALT
 | 
			
		||||
//#define MBEDTLS_XTEA_ALT
 | 
			
		||||
//#define MBEDTLS_DHM_ALT
 | 
			
		||||
//#define MBEDTLS_ECJPAKE_ALT
 | 
			
		||||
//#define MBEDTLS_GCM_ALT
 | 
			
		||||
//#define MBEDTLS_NIST_KW_ALT
 | 
			
		||||
//#define MBEDTLS_MD2_ALT
 | 
			
		||||
//#define MBEDTLS_MD4_ALT
 | 
			
		||||
//#define MBEDTLS_MD5_ALT
 | 
			
		||||
//#define MBEDTLS_POLY1305_ALT
 | 
			
		||||
//#define MBEDTLS_RIPEMD160_ALT
 | 
			
		||||
//#define MBEDTLS_RSA_ALT
 | 
			
		||||
//#define MBEDTLS_SHA1_ALT
 | 
			
		||||
//#define MBEDTLS_SHA256_ALT
 | 
			
		||||
//#define MBEDTLS_SHA512_ALT
 | 
			
		||||
//#define MBEDTLS_XTEA_ALT
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * When replacing the elliptic curve module, pleace consider, that it is
 | 
			
		||||
 * implemented with two .c files:
 | 
			
		||||
| 
						 | 
				
			
			@ -315,6 +359,12 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Uncomment a macro to enable alternate implementation of the corresponding
 | 
			
		||||
 * function.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   MD2, MD4, MD5, DES and SHA-1 are considered weak and their use
 | 
			
		||||
 *            constitutes a security risk. If possible, we recommend avoiding
 | 
			
		||||
 *            dependencies on them, and considering stronger message digests
 | 
			
		||||
 *            and ciphers instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_MD2_PROCESS_ALT
 | 
			
		||||
//#define MBEDTLS_MD4_PROCESS_ALT
 | 
			
		||||
| 
						 | 
				
			
			@ -330,6 +380,11 @@
 | 
			
		|||
//#define MBEDTLS_AES_SETKEY_DEC_ALT
 | 
			
		||||
//#define MBEDTLS_AES_ENCRYPT_ALT
 | 
			
		||||
//#define MBEDTLS_AES_DECRYPT_ALT
 | 
			
		||||
//#define MBEDTLS_ECDH_GEN_PUBLIC_ALT
 | 
			
		||||
//#define MBEDTLS_ECDH_COMPUTE_SHARED_ALT
 | 
			
		||||
//#define MBEDTLS_ECDSA_VERIFY_ALT
 | 
			
		||||
//#define MBEDTLS_ECDSA_SIGN_ALT
 | 
			
		||||
//#define MBEDTLS_ECDSA_GENKEY_ALT
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ECP_INTERNAL_ALT
 | 
			
		||||
| 
						 | 
				
			
			@ -417,12 +472,45 @@
 | 
			
		|||
/**
 | 
			
		||||
 * \def MBEDTLS_AES_ROM_TABLES
 | 
			
		||||
 *
 | 
			
		||||
 * Store the AES tables in ROM.
 | 
			
		||||
 * Use precomputed AES tables stored in ROM.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to use precomputed AES tables stored in ROM.
 | 
			
		||||
 * Comment this macro to generate AES tables in RAM at runtime.
 | 
			
		||||
 *
 | 
			
		||||
 * Tradeoff: Using precomputed ROM tables reduces RAM usage by ~8kb
 | 
			
		||||
 * (or ~2kb if \c MBEDTLS_AES_FEWER_TABLES is used) and reduces the
 | 
			
		||||
 * initialization time before the first AES operation can be performed.
 | 
			
		||||
 * It comes at the cost of additional ~8kb ROM use (resp. ~2kb if \c
 | 
			
		||||
 * MBEDTLS_AES_FEWER_TABLES below is used), and potentially degraded
 | 
			
		||||
 * performance if ROM access is slower than RAM access.
 | 
			
		||||
 *
 | 
			
		||||
 * This option is independent of \c MBEDTLS_AES_FEWER_TABLES.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to store the AES tables in ROM.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_AES_ROM_TABLES
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_AES_FEWER_TABLES
 | 
			
		||||
 *
 | 
			
		||||
 * Use less ROM/RAM for AES tables.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncommenting this macro omits 75% of the AES tables from
 | 
			
		||||
 * ROM / RAM (depending on the value of \c MBEDTLS_AES_ROM_TABLES)
 | 
			
		||||
 * by computing their values on the fly during operations
 | 
			
		||||
 * (the tables are entry-wise rotations of one another).
 | 
			
		||||
 *
 | 
			
		||||
 * Tradeoff: Uncommenting this reduces the RAM / ROM footprint
 | 
			
		||||
 * by ~6kb but at the cost of more arithmetic operations during
 | 
			
		||||
 * runtime. Specifically, one has to compare 4 accesses within
 | 
			
		||||
 * different tables to 4 accesses with additional arithmetic
 | 
			
		||||
 * operations within the same table. The performance gain/loss
 | 
			
		||||
 * depends on the system and memory details.
 | 
			
		||||
 *
 | 
			
		||||
 * This option is independent of \c MBEDTLS_AES_ROM_TABLES.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_AES_FEWER_TABLES
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CAMELLIA_SMALL_MEMORY
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -453,6 +541,20 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_CIPHER_MODE_CTR
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CIPHER_MODE_OFB
 | 
			
		||||
 *
 | 
			
		||||
 * Enable Output Feedback mode (OFB) for symmetric ciphers.
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_CIPHER_MODE_OFB
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CIPHER_MODE_XTS
 | 
			
		||||
 *
 | 
			
		||||
 * Enable Xor-encrypt-xor with ciphertext stealing mode (XTS) for AES.
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_CIPHER_MODE_XTS
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CIPHER_NULL_CIPHER
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -514,6 +616,9 @@
 | 
			
		|||
 *      MBEDTLS_TLS_DHE_RSA_WITH_DES_CBC_SHA
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to enable weak ciphersuites
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   DES is considered a weak cipher and its use constitutes a
 | 
			
		||||
 *            security risk. We recommend considering stronger ciphers instead.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ENABLE_WEAK_CIPHERSUITES
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -550,6 +655,7 @@
 | 
			
		|||
#define MBEDTLS_ECP_DP_BP384R1_ENABLED
 | 
			
		||||
#define MBEDTLS_ECP_DP_BP512R1_ENABLED
 | 
			
		||||
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
 | 
			
		||||
#define MBEDTLS_ECP_DP_CURVE448_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ECP_NIST_OPTIM
 | 
			
		||||
| 
						 | 
				
			
			@ -619,6 +725,13 @@
 | 
			
		|||
 *      MBEDTLS_TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_RC4_128_SHA
 | 
			
		||||
 *
 | 
			
		||||
 * \warning    Using DHE constitutes a security risk as it
 | 
			
		||||
 *             is not possible to validate custom DH parameters.
 | 
			
		||||
 *             If possible, it is recommended users should consider
 | 
			
		||||
 *             preferring other methods of key exchange.
 | 
			
		||||
 *             See dhm.h for more details.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -640,7 +753,7 @@
 | 
			
		|||
 *      MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
 | 
			
		||||
| 
						 | 
				
			
			@ -718,6 +831,13 @@
 | 
			
		|||
 *      MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *
 | 
			
		||||
 * \warning    Using DHE constitutes a security risk as it
 | 
			
		||||
 *             is not possible to validate custom DH parameters.
 | 
			
		||||
 *             If possible, it is recommended users should consider
 | 
			
		||||
 *             preferring other methods of key exchange.
 | 
			
		||||
 *             See dhm.h for more details.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -744,7 +864,7 @@
 | 
			
		|||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_RC4_128_SHA
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
 | 
			
		||||
| 
						 | 
				
			
			@ -768,7 +888,7 @@
 | 
			
		|||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
 | 
			
		||||
| 
						 | 
				
			
			@ -792,7 +912,7 @@
 | 
			
		|||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
 | 
			
		||||
| 
						 | 
				
			
			@ -816,7 +936,7 @@
 | 
			
		|||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
 | 
			
		||||
#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
 | 
			
		||||
| 
						 | 
				
			
			@ -1009,7 +1129,8 @@
 | 
			
		|||
/**
 | 
			
		||||
 * \def MBEDTLS_RSA_NO_CRT
 | 
			
		||||
 *
 | 
			
		||||
 * Do not use the Chinese Remainder Theorem for the RSA private operation.
 | 
			
		||||
 * Do not use the Chinese Remainder Theorem
 | 
			
		||||
 * for the RSA private operation.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to disable the use of CRT in RSA.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1053,6 +1174,17 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_SSL_ALL_ALERT_MESSAGES
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_SSL_ASYNC_PRIVATE
 | 
			
		||||
 *
 | 
			
		||||
 * Enable asynchronous external private key operations in SSL. This allows
 | 
			
		||||
 * you to configure an SSL connection to call an external cryptographic
 | 
			
		||||
 * module to perform private key operations instead of performing the
 | 
			
		||||
 * operation inside the library.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_ASYNC_PRIVATE
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_SSL_DEBUG_ALL
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1156,8 +1288,15 @@
 | 
			
		|||
 * misuse/misunderstand.
 | 
			
		||||
 *
 | 
			
		||||
 * Comment this to disable support for renegotiation.
 | 
			
		||||
 *
 | 
			
		||||
 * \note   Even if this option is disabled, both client and server are aware
 | 
			
		||||
 *         of the Renegotiation Indication Extension (RFC 5746) used to
 | 
			
		||||
 *         prevent the SSL renegotiation attack (see RFC 5746 Sect. 1).
 | 
			
		||||
 *         (See \c mbedtls_ssl_conf_legacy_renegotiation for the
 | 
			
		||||
 *          configuration of this extension).
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_RENEGOTIATION
 | 
			
		||||
#define MBEDTLS_SSL_RENEGOTIATION
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
 | 
			
		||||
| 
						 | 
				
			
			@ -1198,7 +1337,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Comment this macro to disable support for SSL 3.0
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_SSL_PROTO_SSL3
 | 
			
		||||
//#define MBEDTLS_SSL_PROTO_SSL3
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_SSL_PROTO_TLS1
 | 
			
		||||
| 
						 | 
				
			
			@ -1364,6 +1503,30 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_SSL_TRUNCATED_HMAC
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
 | 
			
		||||
 *
 | 
			
		||||
 * Fallback to old (pre-2.7), non-conforming implementation of the truncated
 | 
			
		||||
 * HMAC extension which also truncates the HMAC key. Note that this option is
 | 
			
		||||
 * only meant for a transitory upgrade period and is likely to be removed in
 | 
			
		||||
 * a future version of the library.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning The old implementation is non-compliant and has a security weakness
 | 
			
		||||
 *          (2^80 brute force attack on the HMAC key used for a single,
 | 
			
		||||
 *          uninterrupted connection). This should only be enabled temporarily
 | 
			
		||||
 *          when (1) the use of truncated HMAC is essential in order to save
 | 
			
		||||
 *          bandwidth, and (2) the peer is an Mbed TLS stack that doesn't use
 | 
			
		||||
 *          the fixed implementation yet (pre-2.7).
 | 
			
		||||
 *
 | 
			
		||||
 * \deprecated This option is deprecated and will likely be removed in a
 | 
			
		||||
 *             future version of Mbed TLS.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment to fallback to old, non-compliant truncated HMAC implementation.
 | 
			
		||||
 *
 | 
			
		||||
 * Requires: MBEDTLS_SSL_TRUNCATED_HMAC
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_THREADING_ALT
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1397,7 +1560,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Comment this to disable run-time checking and save ROM space
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_VERSION_FEATURES
 | 
			
		||||
#define MBEDTLS_VERSION_FEATURES
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
 | 
			
		||||
| 
						 | 
				
			
			@ -1470,6 +1633,9 @@
 | 
			
		|||
 *
 | 
			
		||||
 * \note Currently compression can't be used with DTLS.
 | 
			
		||||
 *
 | 
			
		||||
 * \deprecated This feature is deprecated and will be removed
 | 
			
		||||
 *             in the next major revision of the library.
 | 
			
		||||
 *
 | 
			
		||||
 * Used in: library/ssl_tls.c
 | 
			
		||||
 *          library/ssl_cli.c
 | 
			
		||||
 *          library/ssl_srv.c
 | 
			
		||||
| 
						 | 
				
			
			@ -1508,7 +1674,7 @@
 | 
			
		|||
 * Enable the AES block cipher.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/aes.c
 | 
			
		||||
 * Caller:  library/ssl_tls.c
 | 
			
		||||
 * Caller:  library/cipher.c
 | 
			
		||||
 *          library/pem.c
 | 
			
		||||
 *          library/ctr_drbg.c
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1583,7 +1749,7 @@
 | 
			
		|||
 * Enable the ARCFOUR stream cipher.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/arc4.c
 | 
			
		||||
 * Caller:  library/ssl_tls.c
 | 
			
		||||
 * Caller:  library/cipher.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module enables the following ciphersuites (if other requisites are
 | 
			
		||||
 * enabled as well):
 | 
			
		||||
| 
						 | 
				
			
			@ -1597,8 +1763,13 @@
 | 
			
		|||
 *      MBEDTLS_TLS_RSA_WITH_RC4_128_MD5
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
 | 
			
		||||
 *      MBEDTLS_TLS_PSK_WITH_RC4_128_SHA
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   ARC4 is considered a weak cipher and its use constitutes a
 | 
			
		||||
 *            security risk. If possible, we recommend avoidng dependencies on
 | 
			
		||||
 *            it, and considering stronger ciphers instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_ARC4_C
 | 
			
		||||
//#define MBEDTLS_ARC4_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ASN1_PARSE_C
 | 
			
		||||
| 
						 | 
				
			
			@ -1650,6 +1821,7 @@
 | 
			
		|||
 *          library/ecp.c
 | 
			
		||||
 *          library/ecdsa.c
 | 
			
		||||
 *          library/rsa.c
 | 
			
		||||
 *          library/rsa_internal.c
 | 
			
		||||
 *          library/ssl_tls.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module is required for RSA, DHM and ECC (ECDH, ECDSA) support.
 | 
			
		||||
| 
						 | 
				
			
			@ -1671,7 +1843,7 @@
 | 
			
		|||
 * Enable the Camellia block cipher.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/camellia.c
 | 
			
		||||
 * Caller:  library/ssl_tls.c
 | 
			
		||||
 * Caller:  library/cipher.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module enables the following ciphersuites (if other requisites are
 | 
			
		||||
 * enabled as well):
 | 
			
		||||
| 
						 | 
				
			
			@ -1720,6 +1892,58 @@
 | 
			
		|||
 */
 | 
			
		||||
//#define MBEDTLS_CAMELLIA_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ARIA_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the ARIA block cipher.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/aria.c
 | 
			
		||||
 * Caller:  library/cipher.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module enables the following ciphersuites (if other requisites are
 | 
			
		||||
 * enabled as well):
 | 
			
		||||
 *
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_PSK_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_PSK_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_PSK_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_PSK_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256
 | 
			
		||||
 *      MBEDTLS_TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ARIA_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CCM_C
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1746,6 +1970,26 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_CERTS_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CHACHA20_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the ChaCha20 stream cipher.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/chacha20.c
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_CHACHA20_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CHACHAPOLY_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the ChaCha20-Poly1305 AEAD algorithm.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/chachapoly.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module requires: MBEDTLS_CHACHA20_C, MBEDTLS_POLY1305_C
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_CHACHAPOLY_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_CIPHER_C
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1806,7 +2050,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Module:  library/des.c
 | 
			
		||||
 * Caller:  library/pem.c
 | 
			
		||||
 *          library/ssl_tls.c
 | 
			
		||||
 *          library/cipher.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module enables the following ciphersuites (if other requisites are
 | 
			
		||||
 * enabled as well):
 | 
			
		||||
| 
						 | 
				
			
			@ -1822,6 +2066,9 @@
 | 
			
		|||
 *      MBEDTLS_TLS_PSK_WITH_3DES_EDE_CBC_SHA
 | 
			
		||||
 *
 | 
			
		||||
 * PEM_PARSE uses DES/3DES for decrypting encrypted keys.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   DES is considered a weak cipher and its use constitutes a
 | 
			
		||||
 *            security risk. We recommend considering stronger ciphers instead.
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_DES_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1836,6 +2083,13 @@
 | 
			
		|||
 *
 | 
			
		||||
 * This module is used by the following key exchanges:
 | 
			
		||||
 *      DHE-RSA, DHE-PSK
 | 
			
		||||
 *
 | 
			
		||||
 * \warning    Using DHE constitutes a security risk as it
 | 
			
		||||
 *             is not possible to validate custom DH parameters.
 | 
			
		||||
 *             If possible, it is recommended users should consider
 | 
			
		||||
 *             preferring other methods of key exchange.
 | 
			
		||||
 *             See dhm.h for more details.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_DHM_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1853,7 +2107,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Requires: MBEDTLS_ECP_C
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ECDH_C
 | 
			
		||||
#define MBEDTLS_ECDH_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ECDSA_C
 | 
			
		||||
| 
						 | 
				
			
			@ -1868,7 +2122,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Requires: MBEDTLS_ECP_C, MBEDTLS_ASN1_WRITE_C, MBEDTLS_ASN1_PARSE_C
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ECDSA_C
 | 
			
		||||
#define MBEDTLS_ECDSA_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ECJPAKE_C
 | 
			
		||||
| 
						 | 
				
			
			@ -1901,7 +2155,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * Requires: MBEDTLS_BIGNUM_C and at least one MBEDTLS_ECP_DP_XXX_ENABLED
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ECP_C
 | 
			
		||||
#define MBEDTLS_ECP_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_ENTROPY_C
 | 
			
		||||
| 
						 | 
				
			
			@ -1966,6 +2220,21 @@
 | 
			
		|||
 */
 | 
			
		||||
//#define MBEDTLS_HAVEGE_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_HKDF_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the HKDF algorithm (RFC 5869).
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/hkdf.c
 | 
			
		||||
 * Caller:
 | 
			
		||||
 *
 | 
			
		||||
 * Requires: MBEDTLS_MD_C
 | 
			
		||||
 *
 | 
			
		||||
 * This module adds support for the Hashed Message Authentication Code
 | 
			
		||||
 * (HMAC)-based key derivation function (HKDF).
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_HKDF_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_HMAC_DRBG_C
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -1980,6 +2249,19 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_HMAC_DRBG_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_NIST_KW_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the Key Wrapping mode for 128-bit block ciphers,
 | 
			
		||||
 * as defined in NIST SP 800-38F. Only KW and KWP modes
 | 
			
		||||
 * are supported. At the moment, only AES is approved by NIST.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/nist_kw.c
 | 
			
		||||
 *
 | 
			
		||||
 * Requires: MBEDTLS_AES_C and MBEDTLS_CIPHER_C
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_NIST_KW_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_MD_C
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -2001,6 +2283,11 @@
 | 
			
		|||
 * Caller:
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment to enable support for (rare) MD2-signed X.509 certs.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   MD2 is considered a weak message digest and its use constitutes a
 | 
			
		||||
 *            security risk. If possible, we recommend avoiding dependencies on
 | 
			
		||||
 *            it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_MD2_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2013,6 +2300,11 @@
 | 
			
		|||
 * Caller:
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment to enable support for (rare) MD4-signed X.509 certs.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   MD4 is considered a weak message digest and its use constitutes a
 | 
			
		||||
 *            security risk. If possible, we recommend avoiding dependencies on
 | 
			
		||||
 *            it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_MD4_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2026,8 +2318,15 @@
 | 
			
		|||
 *          library/pem.c
 | 
			
		||||
 *          library/ssl_tls.c
 | 
			
		||||
 *
 | 
			
		||||
 * This module is required for SSL/TLS and X.509.
 | 
			
		||||
 * PEM_PARSE uses MD5 for decrypting encrypted keys.
 | 
			
		||||
 * This module is required for SSL/TLS up to version 1.1, and for TLS 1.2
 | 
			
		||||
 * depending on the handshake parameters. Further, it is used for checking
 | 
			
		||||
 * MD5-signed certificates, and for PBKDF1 when decrypting PEM-encoded
 | 
			
		||||
 * encrypted keys.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   MD5 is considered a weak message digest and its use constitutes a
 | 
			
		||||
 *            security risk. If possible, we recommend avoiding dependencies on
 | 
			
		||||
 *            it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_MD5_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2064,7 +2363,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 * This module provides networking routines.
 | 
			
		||||
 */
 | 
			
		||||
// #define MBEDTLS_NET_C
 | 
			
		||||
//#define MBEDTLS_NET_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_OID_C
 | 
			
		||||
| 
						 | 
				
			
			@ -2246,6 +2545,16 @@
 | 
			
		|||
 */
 | 
			
		||||
#define MBEDTLS_PLATFORM_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_POLY1305_C
 | 
			
		||||
 *
 | 
			
		||||
 * Enable the Poly1305 MAC algorithm.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/poly1305.c
 | 
			
		||||
 * Caller:  library/chachapoly.c
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_POLY1305_C
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def MBEDTLS_RIPEMD160_C
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -2263,6 +2572,7 @@
 | 
			
		|||
 * Enable the RSA public-key cryptosystem.
 | 
			
		||||
 *
 | 
			
		||||
 * Module:  library/rsa.c
 | 
			
		||||
 *          library/rsa_internal.c
 | 
			
		||||
 * Caller:  library/ssl_cli.c
 | 
			
		||||
 *          library/ssl_srv.c
 | 
			
		||||
 *          library/ssl_tls.c
 | 
			
		||||
| 
						 | 
				
			
			@ -2289,6 +2599,11 @@
 | 
			
		|||
 *
 | 
			
		||||
 * This module is required for SSL/TLS up to version 1.1, for TLS 1.2
 | 
			
		||||
 * depending on the handshake parameters, and for SHA1-signed certificates.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   SHA-1 is considered a weak message digest and its use constitutes
 | 
			
		||||
 *            a security risk. If possible, we recommend avoiding dependencies
 | 
			
		||||
 *            on it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_SHA1_C
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2621,10 +2936,10 @@
 | 
			
		|||
//#define MBEDTLS_PLATFORM_STD_FREE            free /**< Default free to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_EXIT            exit /**< Default exit to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_TIME            time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_FPRINTF      fprintf /**< Default fprintf to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_PRINTF        printf /**< Default printf to use, can be undefined */
 | 
			
		||||
#define MBEDTLS_PLATFORM_STD_FPRINTF      fprintf /**< Default fprintf to use, can be undefined */
 | 
			
		||||
#define MBEDTLS_PLATFORM_STD_PRINTF        printf /**< Default printf to use, can be undefined */
 | 
			
		||||
/* Note: your snprintf must correclty zero-terminate the buffer! */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_SNPRINTF    snprintf /**< Default snprintf to use, can be undefined */
 | 
			
		||||
#define MBEDTLS_PLATFORM_STD_SNPRINTF    snprintf /**< Default snprintf to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_EXIT_SUCCESS       0 /**< Default exit value to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_EXIT_FAILURE       1 /**< Default exit value to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_STD_NV_SEED_READ   mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
 | 
			
		||||
| 
						 | 
				
			
			@ -2641,7 +2956,7 @@
 | 
			
		|||
//#define MBEDTLS_PLATFORM_FPRINTF_MACRO      fprintf /**< Default fprintf macro to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_PRINTF_MACRO        printf /**< Default printf macro to use, can be undefined */
 | 
			
		||||
/* Note: your snprintf must correclty zero-terminate the buffer! */
 | 
			
		||||
#define MBEDTLS_PLATFORM_SNPRINTF_MACRO    snprintf /**< Default snprintf macro to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_SNPRINTF_MACRO    snprintf /**< Default snprintf macro to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO   mbedtls_platform_std_nv_seed_read /**< Default nv_seed_read function to use, can be undefined */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO  mbedtls_platform_std_nv_seed_write /**< Default nv_seed_write function to use, can be undefined */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2650,7 +2965,51 @@
 | 
			
		|||
//#define MBEDTLS_SSL_CACHE_DEFAULT_MAX_ENTRIES      50 /**< Maximum entries in cache */
 | 
			
		||||
 | 
			
		||||
/* SSL options */
 | 
			
		||||
//#define MBEDTLS_SSL_MAX_CONTENT_LEN             16384 /**< Maxium fragment length in bytes, determines the size of each of the two internal I/O buffers */
 | 
			
		||||
 | 
			
		||||
/** \def MBEDTLS_SSL_MAX_CONTENT_LEN
 | 
			
		||||
 *
 | 
			
		||||
 * Maximum fragment length in bytes.
 | 
			
		||||
 *
 | 
			
		||||
 * Determines the size of both the incoming and outgoing TLS I/O buffers.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncommenting MBEDTLS_SSL_IN_CONTENT_LEN and/or MBEDTLS_SSL_OUT_CONTENT_LEN
 | 
			
		||||
 * will override this length by setting maximum incoming and/or outgoing
 | 
			
		||||
 * fragment length, respectively.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_MAX_CONTENT_LEN             16384
 | 
			
		||||
 | 
			
		||||
/** \def MBEDTLS_SSL_IN_CONTENT_LEN
 | 
			
		||||
 *
 | 
			
		||||
 * Maximum incoming fragment length in bytes.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment to set the size of the inward TLS buffer independently of the
 | 
			
		||||
 * outward buffer.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_IN_CONTENT_LEN              16384
 | 
			
		||||
 | 
			
		||||
/** \def MBEDTLS_SSL_OUT_CONTENT_LEN
 | 
			
		||||
 *
 | 
			
		||||
 * Maximum outgoing fragment length in bytes.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment to set the size of the outward TLS buffer independently of the
 | 
			
		||||
 * inward buffer.
 | 
			
		||||
 *
 | 
			
		||||
 * It is possible to save RAM by setting a smaller outward buffer, while keeping
 | 
			
		||||
 * the default inward 16384 byte buffer to conform to the TLS specification.
 | 
			
		||||
 *
 | 
			
		||||
 * The minimum required outward buffer size is determined by the handshake
 | 
			
		||||
 * protocol's usage. Handshaking will fail if the outward buffer is too small.
 | 
			
		||||
 * The specific size requirement depends on the configured ciphers and any
 | 
			
		||||
 * certificate data which is sent during the handshake.
 | 
			
		||||
 *
 | 
			
		||||
 * For absolute minimum RAM usage, it's best to enable
 | 
			
		||||
 * MBEDTLS_SSL_MAX_FRAGMENT_LENGTH and reduce MBEDTLS_SSL_MAX_CONTENT_LEN. This
 | 
			
		||||
 * reduces both incoming and outgoing buffer sizes. However this is only
 | 
			
		||||
 * guaranteed if the other end of the connection also supports the TLS
 | 
			
		||||
 * max_fragment_len extension. Otherwise the connection may fail.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_SSL_OUT_CONTENT_LEN             16384
 | 
			
		||||
 | 
			
		||||
//#define MBEDTLS_SSL_DEFAULT_TICKET_LIFETIME     86400 /**< Lifetime of session tickets (if enabled) */
 | 
			
		||||
//#define MBEDTLS_PSK_MAX_LEN               32 /**< Max size of TLS pre-shared keys, in bytes (default 256 bits) */
 | 
			
		||||
//#define MBEDTLS_SSL_COOKIE_TIMEOUT        60 /**< Default expiration delay of DTLS cookies, in seconds if HAVE_TIME, or in number of cookies issued */
 | 
			
		||||
| 
						 | 
				
			
			@ -2677,8 +3036,13 @@
 | 
			
		|||
 * Allow SHA-1 in the default TLS configuration for certificate signing.
 | 
			
		||||
 * Without this build-time option, SHA-1 support must be activated explicitly
 | 
			
		||||
 * through mbedtls_ssl_conf_cert_profile. Turning on this option is not
 | 
			
		||||
 * recommended because of it is possible to generte SHA-1 collisions, however
 | 
			
		||||
 * recommended because of it is possible to generate SHA-1 collisions, however
 | 
			
		||||
 * this may be safe for legacy infrastructure where additional controls apply.
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   SHA-1 is considered a weak message digest and its use constitutes
 | 
			
		||||
 *            a security risk. If possible, we recommend avoiding dependencies
 | 
			
		||||
 *            on it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
// #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -2689,14 +3053,40 @@
 | 
			
		|||
 * The use of SHA-1 in TLS <= 1.1 and in HMAC-SHA-1 is always allowed by
 | 
			
		||||
 * default. At the time of writing, there is no practical attack on the use
 | 
			
		||||
 * of SHA-1 in handshake signatures, hence this option is turned on by default
 | 
			
		||||
 * for compatibility with existing peers.
 | 
			
		||||
 * to preserve compatibility with existing peers, but the general
 | 
			
		||||
 * warning applies nonetheless:
 | 
			
		||||
 *
 | 
			
		||||
 * \warning   SHA-1 is considered a weak message digest and its use constitutes
 | 
			
		||||
 *            a security risk. If possible, we recommend avoiding dependencies
 | 
			
		||||
 *            on it, and considering stronger message digests instead.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Uncomment the macro to let mbed TLS use your alternate implementation of
 | 
			
		||||
 * mbedtls_platform_zeroize(). This replaces the default implementation in
 | 
			
		||||
 * platform_util.c.
 | 
			
		||||
 *
 | 
			
		||||
 * mbedtls_platform_zeroize() is a widely used function across the library to
 | 
			
		||||
 * zero a block of memory. The implementation is expected to be secure in the
 | 
			
		||||
 * sense that it has been written to prevent the compiler from removing calls
 | 
			
		||||
 * to mbedtls_platform_zeroize() as part of redundant code elimination
 | 
			
		||||
 * optimizations. However, it is difficult to guarantee that calls to
 | 
			
		||||
 * mbedtls_platform_zeroize() will not be optimized by the compiler as older
 | 
			
		||||
 * versions of the C language standards do not provide a secure implementation
 | 
			
		||||
 * of memset(). Therefore, MBEDTLS_PLATFORM_ZEROIZE_ALT enables users to
 | 
			
		||||
 * configure their own implementation of mbedtls_platform_zeroize(), for
 | 
			
		||||
 * example by using directives specific to their compiler, features from newer
 | 
			
		||||
 * C standards (e.g using memset_s() in C11) or calling a secure memset() from
 | 
			
		||||
 * their system (e.g explicit_bzero() in BSD).
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_PLATFORM_ZEROIZE_ALT
 | 
			
		||||
 | 
			
		||||
/* \} name SECTION: Customisation configuration options */
 | 
			
		||||
 | 
			
		||||
/* Target and application specific configurations */
 | 
			
		||||
//#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "mbedtls/target_config.h"
 | 
			
		||||
//#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "target_config.h"
 | 
			
		||||
 | 
			
		||||
#if defined(TARGET_LIKE_MBED) && defined(YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE)
 | 
			
		||||
#include YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -6,15 +6,15 @@
 | 
			
		|||
#define PACKAGE "libssh"
 | 
			
		||||
 | 
			
		||||
/* Version number of package */
 | 
			
		||||
#define VERSION "0.7.4"
 | 
			
		||||
#define VERSION "0.8.2"
 | 
			
		||||
 | 
			
		||||
/* #undef LOCALEDIR */
 | 
			
		||||
/* #undef DATADIR */
 | 
			
		||||
//#define LIBDIR "lib"
 | 
			
		||||
//#define PLUGINDIR "plugins-4"
 | 
			
		||||
/* #undef SYSCONFDIR */
 | 
			
		||||
//#define BINARYDIR "E:/work/eomsoft/tmp/libssh/build"
 | 
			
		||||
//#define SOURCEDIR "E:/work/eomsoft/tmp/libssh"
 | 
			
		||||
//#define BINARYDIR "E:/work/tp4a/teleport/external/_download_/libssh-0.8.2/build"
 | 
			
		||||
//#define SOURCEDIR "E:/work/tp4a/teleport/external/_download_/libssh-0.8.2/libssh-0.8.2"
 | 
			
		||||
 | 
			
		||||
/************************** HEADER FILES *************************/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -24,6 +24,9 @@
 | 
			
		|||
/* Define to 1 if you have the <aprpa/inet.h> header file. */
 | 
			
		||||
/* #undef HAVE_ARPA_INET_H */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <glob.h> header file. */
 | 
			
		||||
/* #undef HAVE_GLOB_H */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <pty.h> header file. */
 | 
			
		||||
/* #undef HAVE_PTY_H */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -39,12 +42,21 @@
 | 
			
		|||
/* Define to 1 if you have the <sys/time.h> header file. */
 | 
			
		||||
/* #undef HAVE_SYS_TIME_H */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <sys/utime.h> header file. */
 | 
			
		||||
#define HAVE_SYS_UTIME_H 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <io.h> header file. */
 | 
			
		||||
#define HAVE_IO_H 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <termios.h> header file. */
 | 
			
		||||
/* #undef HAVE_TERMIOS_H */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <unistd.h> header file. */
 | 
			
		||||
/* #undef HAVE_UNISTD_H */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <stdint.h> header file. */
 | 
			
		||||
#define HAVE_STDINT_H 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the <openssl/aes.h> header file. */
 | 
			
		||||
#define HAVE_OPENSSL_AES_H 1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -78,6 +90,9 @@
 | 
			
		|||
/* Define to 1 if you have eliptic curve cryptography */
 | 
			
		||||
#define HAVE_ECC 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have DSA */
 | 
			
		||||
#define HAVE_DSA 1
 | 
			
		||||
 | 
			
		||||
/*************************** FUNCTIONS ***************************/
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `EVP_aes128_ctr' function. */
 | 
			
		||||
| 
						 | 
				
			
			@ -86,23 +101,32 @@
 | 
			
		|||
/* Define to 1 if you have the `EVP_aes128_cbc' function. */
 | 
			
		||||
#define HAVE_OPENSSL_EVP_AES_CBC 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */
 | 
			
		||||
#define HAVE_OPENSSL_CRYPTO_THREADID_SET_CALLBACK 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `CRYPTO_ctr128_encrypt' function. */
 | 
			
		||||
#define HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `EVP_CIPHER_CTX_new' function. */
 | 
			
		||||
#define HAVE_OPENSSL_EVP_CIPHER_CTX_NEW 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `snprintf' function. */
 | 
			
		||||
#define HAVE_SNPRINTF 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `_snprintf' function. */
 | 
			
		||||
/* #undef HAVE__SNPRINTF */
 | 
			
		||||
#define HAVE__SNPRINTF 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `_snprintf_s' function. */
 | 
			
		||||
/* #undef HAVE__SNPRINTF_S */
 | 
			
		||||
#define HAVE__SNPRINTF_S 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `vsnprintf' function. */
 | 
			
		||||
#define HAVE_VSNPRINTF 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `_vsnprintf' function. */
 | 
			
		||||
/* #undef HAVE__VSNPRINTF */
 | 
			
		||||
#define HAVE__VSNPRINTF 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `_vsnprintf_s' function. */
 | 
			
		||||
/* #undef HAVE__VSNPRINTF_S */
 | 
			
		||||
#define HAVE__VSNPRINTF_S 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `isblank' function. */
 | 
			
		||||
#define HAVE_ISBLANK 1
 | 
			
		||||
| 
						 | 
				
			
			@ -110,6 +134,9 @@
 | 
			
		|||
/* Define to 1 if you have the `strncpy' function. */
 | 
			
		||||
#define HAVE_STRNCPY 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `strndup' function. */
 | 
			
		||||
/* #undef HAVE_STRNDUP */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `cfmakeraw' function. */
 | 
			
		||||
/* #undef HAVE_CFMAKERAW */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -126,13 +153,13 @@
 | 
			
		|||
/* #undef HAVE_CLOCK_GETTIME */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `ntohll' function. */
 | 
			
		||||
//#define HAVE_NTOHLL 1
 | 
			
		||||
/*#define HAVE_NTOHLL 1*/
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `htonll' function. */
 | 
			
		||||
//#define HAVE_HTONLL 1
 | 
			
		||||
/*#define HAVE_HTONLL 1*/
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `strtoull' function. */
 | 
			
		||||
/* #undef HAVE_STRTOULL */
 | 
			
		||||
#define HAVE_STRTOULL 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `__strtoull' function. */
 | 
			
		||||
/* #undef HAVE___STRTOULL */
 | 
			
		||||
| 
						 | 
				
			
			@ -140,6 +167,18 @@
 | 
			
		|||
/* Define to 1 if you have the `_strtoui64' function. */
 | 
			
		||||
#define HAVE__STRTOUI64 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `glob' function. */
 | 
			
		||||
/* #undef HAVE_GLOB */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `explicit_bzero' function. */
 | 
			
		||||
/* #undef HAVE_EXPLICIT_BZERO */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `memset_s' function. */
 | 
			
		||||
/* #undef HAVE_MEMSET_S */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `SecureZeroMemory' function. */
 | 
			
		||||
#define HAVE_SECURE_ZERO_MEMORY 1
 | 
			
		||||
 | 
			
		||||
/*************************** LIBRARIES ***************************/
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `crypto' library (-lcrypto). */
 | 
			
		||||
| 
						 | 
				
			
			@ -148,6 +187,9 @@
 | 
			
		|||
/* Define to 1 if you have the `gcrypt' library (-lgcrypt). */
 | 
			
		||||
/* #undef HAVE_LIBGCRYPT */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the 'mbedTLS' library (-lmbedtls). */
 | 
			
		||||
/* #undef HAVE_LIBMBEDCRYPTO */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
 | 
			
		||||
/* #undef HAVE_PTHREAD */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -156,31 +198,37 @@
 | 
			
		|||
/* #undef HAVE_GCC_THREAD_LOCAL_STORAGE */
 | 
			
		||||
#define HAVE_MSC_THREAD_LOCAL_STORAGE 1
 | 
			
		||||
 | 
			
		||||
/* #undef HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
 | 
			
		||||
/*#define HAVE_GCC_NARG_MACRO 1*/
 | 
			
		||||
/* #undef HAVE_FALLTHROUGH_ATTRIBUTE */
 | 
			
		||||
 | 
			
		||||
/* #undef HAVE_COMPILER__FUNC__ */
 | 
			
		||||
/* #undef HAVE_CONSTRUCTOR_ATTRIBUTE */
 | 
			
		||||
/* #undef HAVE_DESTRUCTOR_ATTRIBUTE */
 | 
			
		||||
 | 
			
		||||
/* #undef HAVE_GCC_VOLATILE_MEMORY_PROTECTION */
 | 
			
		||||
#define HAVE_GCC_NARG_MACRO 1
 | 
			
		||||
 | 
			
		||||
#define HAVE_COMPILER__FUNC__ 1
 | 
			
		||||
#define HAVE_COMPILER__FUNCTION__ 1
 | 
			
		||||
 | 
			
		||||
/* #undef HAVE_GCC_BOUNDED_ATTRIBUTE */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable GSSAPI */
 | 
			
		||||
/* #undef WITH_GSSAPI */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable ZLIB */
 | 
			
		||||
/*#define WITH_ZLIB 1*/
 | 
			
		||||
/* #undef WITH_ZLIB */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable SFTP */
 | 
			
		||||
#define WITH_SFTP 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable SSH1 */
 | 
			
		||||
/* #undef WITH_SSH1 */
 | 
			
		||||
#define WITH_SSH1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable server support */
 | 
			
		||||
#define WITH_SERVER 1
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable debug output for crypto functions */
 | 
			
		||||
/* #undef DEBUG_CRYPTO */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable debug output for packet functions */
 | 
			
		||||
/* #undef DEBUG_PACKET */
 | 
			
		||||
 | 
			
		||||
/* Define to 1 if you want to enable pcap output support (experimental) */
 | 
			
		||||
/* #undef WITH_PCAP */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -154,21 +154,21 @@
 | 
			
		|||
  <ItemGroup>
 | 
			
		||||
    <ClCompile Include="src\agent.c" />
 | 
			
		||||
    <ClCompile Include="src\auth.c" />
 | 
			
		||||
    <ClCompile Include="src\auth1.c" />
 | 
			
		||||
    <ClCompile Include="src\base64.c" />
 | 
			
		||||
    <ClCompile Include="src\bignum.c" />
 | 
			
		||||
    <ClCompile Include="src\bind.c" />
 | 
			
		||||
    <ClCompile Include="src\buffer.c" />
 | 
			
		||||
    <ClCompile Include="src\callbacks.c" />
 | 
			
		||||
    <ClCompile Include="src\chachapoly.c" />
 | 
			
		||||
    <ClCompile Include="src\channels.c" />
 | 
			
		||||
    <ClCompile Include="src\channels1.c" />
 | 
			
		||||
    <ClCompile Include="src\client.c" />
 | 
			
		||||
    <ClCompile Include="src\config.c" />
 | 
			
		||||
    <ClCompile Include="src\connect.c" />
 | 
			
		||||
    <ClCompile Include="src\crc32.c" />
 | 
			
		||||
    <ClCompile Include="src\connector.c" />
 | 
			
		||||
    <ClCompile Include="src\curve25519.c" />
 | 
			
		||||
    <ClCompile Include="src\dh.c" />
 | 
			
		||||
    <ClCompile Include="src\ecdh.c" />
 | 
			
		||||
    <ClCompile Include="src\ecdh_crypto.c" />
 | 
			
		||||
    <ClCompile Include="src\error.c" />
 | 
			
		||||
    <ClCompile Include="src\external\bcrypt_pbkdf.c" />
 | 
			
		||||
    <ClCompile Include="src\external\blowfish.c" />
 | 
			
		||||
| 
						 | 
				
			
			@ -177,22 +177,22 @@
 | 
			
		|||
    <ClCompile Include="src\external\fe25519.c" />
 | 
			
		||||
    <ClCompile Include="src\external\ge25519.c" />
 | 
			
		||||
    <ClCompile Include="src\external\sc25519.c" />
 | 
			
		||||
    <ClCompile Include="src\gcrypt_missing.c" />
 | 
			
		||||
    <ClCompile Include="src\getpass.c" />
 | 
			
		||||
    <ClCompile Include="src\init.c" />
 | 
			
		||||
    <ClCompile Include="src\kex.c" />
 | 
			
		||||
    <ClCompile Include="src\kex1.c" />
 | 
			
		||||
    <ClCompile Include="src\knownhosts.c" />
 | 
			
		||||
    <ClCompile Include="src\known_hosts.c" />
 | 
			
		||||
    <ClCompile Include="src\legacy.c" />
 | 
			
		||||
    <ClCompile Include="src\libcrypto-compat.c" />
 | 
			
		||||
    <ClCompile Include="src\libcrypto.c" />
 | 
			
		||||
    <ClCompile Include="src\libgcrypt.c" />
 | 
			
		||||
    <ClCompile Include="src\libmbedcrypto.c" />
 | 
			
		||||
    <ClCompile Include="src\log.c" />
 | 
			
		||||
    <ClCompile Include="src\match.c" />
 | 
			
		||||
    <ClCompile Include="src\messages.c" />
 | 
			
		||||
    <ClCompile Include="src\misc.c" />
 | 
			
		||||
    <ClCompile Include="src\options.c" />
 | 
			
		||||
    <ClCompile Include="src\packet.c" />
 | 
			
		||||
    <ClCompile Include="src\packet1.c" />
 | 
			
		||||
    <ClCompile Include="src\packet_cb.c" />
 | 
			
		||||
    <ClCompile Include="src\packet_crypt.c" />
 | 
			
		||||
    <ClCompile Include="src\pcap.c" />
 | 
			
		||||
| 
						 | 
				
			
			@ -201,6 +201,7 @@
 | 
			
		|||
    <ClCompile Include="src\pki_crypto.c" />
 | 
			
		||||
    <ClCompile Include="src\pki_ed25519.c" />
 | 
			
		||||
    <ClCompile Include="src\pki_gcrypt.c" />
 | 
			
		||||
    <ClCompile Include="src\pki_mbedcrypto.c" />
 | 
			
		||||
    <ClCompile Include="src\poll.c" />
 | 
			
		||||
    <ClCompile Include="src\scp.c" />
 | 
			
		||||
    <ClCompile Include="src\server.c" />
 | 
			
		||||
| 
						 | 
				
			
			@ -210,11 +211,12 @@
 | 
			
		|||
    <ClCompile Include="src\socket.c" />
 | 
			
		||||
    <ClCompile Include="src\string.c" />
 | 
			
		||||
    <ClCompile Include="src\threads.c" />
 | 
			
		||||
    <ClCompile Include="src\threads\pthread.c" />
 | 
			
		||||
    <ClCompile Include="src\threads\winlocks.c" />
 | 
			
		||||
    <ClCompile Include="src\wrapper.c" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ClInclude Include="include\config.h" />
 | 
			
		||||
    <ClInclude Include="src\libcrypto-compat.h" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 | 
			
		||||
  <ImportGroup Label="ExtensionTargets">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,125 +24,26 @@
 | 
			
		|||
    <Text Include="ReadMe.txt" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ClCompile Include="src\agent.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\bcrypt_pbkdf.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\auth.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\blowfish.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\auth1.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\curve25519_ref.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\base64.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\ed25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\bignum.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\fe25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\bind.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\ge25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\buffer.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\callbacks.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\channels.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\channels1.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\client.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\config.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\connect.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\crc32.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\curve25519.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\dh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\ecdh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\error.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\gcrypt_missing.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\getpass.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\init.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\kex.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\kex1.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\known_hosts.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\legacy.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libcrypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libgcrypt.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\log.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\match.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\messages.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\misc.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\options.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet_cb.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet_crypt.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet1.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pcap.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_container_openssh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_crypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    <ClCompile Include="src\external\sc25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_ed25519.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
| 
						 | 
				
			
			@ -150,6 +51,9 @@
 | 
			
		|||
    <ClCompile Include="src\pki_gcrypt.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_mbedcrypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\poll.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
| 
						 | 
				
			
			@ -180,28 +84,127 @@
 | 
			
		|||
    <ClCompile Include="src\wrapper.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\bcrypt_pbkdf.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\agent.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\blowfish.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\auth.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\curve25519_ref.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\base64.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\ed25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\bignum.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\fe25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\bind.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\ge25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\buffer.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\external\sc25519.c">
 | 
			
		||||
      <Filter>Source Files\external</Filter>
 | 
			
		||||
    <ClCompile Include="src\callbacks.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\threads\pthread.c">
 | 
			
		||||
    <ClCompile Include="src\chachapoly.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\channels.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\client.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\config.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\connect.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\connector.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\curve25519.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\dh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\ecdh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\ecdh_crypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\error.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\getpass.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\init.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\kex.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\known_hosts.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\knownhosts.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\legacy.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libcrypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libcrypto-compat.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libgcrypt.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\libmbedcrypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\log.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\match.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\messages.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\misc.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\options.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet_cb.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\packet_crypt.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pcap.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_container_openssh.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\pki_crypto.c">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
    <ClCompile Include="src\threads\winlocks.c">
 | 
			
		||||
      <Filter>Source Files\threads</Filter>
 | 
			
		||||
    </ClCompile>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
| 
						 | 
				
			
			@ -209,5 +212,8 @@
 | 
			
		|||
    <ClInclude Include="include\config.h">
 | 
			
		||||
      <Filter>Header Files</Filter>
 | 
			
		||||
    </ClInclude>
 | 
			
		||||
    <ClInclude Include="src\libcrypto-compat.h">
 | 
			
		||||
      <Filter>Source Files</Filter>
 | 
			
		||||
    </ClInclude>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
| 
						 | 
				
			
			@ -4,7 +4,7 @@ teleport项目用到的第三方库
 | 
			
		|||
 | 
			
		||||
- openssl
 | 
			
		||||
  https://www.openssl.org
 | 
			
		||||
  openssl-1.0.2h
 | 
			
		||||
  openssl-1.0.2p
 | 
			
		||||
  请按openssl文档所述,编译出openssl的静态库。要编译openssl,需要
 | 
			
		||||
  - perl 建议安装ActivePerl http://www.activestate.com/ActivePerl
 | 
			
		||||
  - nasm http://www.nasm.us
 | 
			
		||||
| 
						 | 
				
			
			@ -17,23 +17,19 @@ teleport项目用到的第三方库
 | 
			
		|||
  注意:teleport项目使用源代码直接编译,因此解压缩源代码到此即可。
 | 
			
		||||
- mongoose
 | 
			
		||||
  https://github.com/cesanta/mongoose
 | 
			
		||||
  mongoose 6.6
 | 
			
		||||
  注意:teleport项目使用源代码直接编译,因此解压缩源代码到此即可。
 | 
			
		||||
- sqlite3
 | 
			
		||||
  http://sqlite.org/download.html
 | 
			
		||||
  sqlite3-amalgamation-3150200
 | 
			
		||||
  mongoose 6.12
 | 
			
		||||
  注意:teleport项目使用源代码直接编译,因此解压缩源代码到此即可。
 | 
			
		||||
- mbedtls
 | 
			
		||||
  https://github.com/ARMmbed/mbedtls
 | 
			
		||||
  mbedtls-mbedtls-2.2.1
 | 
			
		||||
  mbedtls-mbedtls-2.12.0
 | 
			
		||||
  注意:teleport项目使用源代码直接编译,因此解压缩源代码到此即可。
 | 
			
		||||
- libssh
 | 
			
		||||
  https://git.libssh.org/projects/libssh.git/snapshot
 | 
			
		||||
  libssh-0.7.4.zip
 | 
			
		||||
  libssh-0.8.2.zip
 | 
			
		||||
  Windows平台使用预制的libssh-static工程进行编译。
 | 
			
		||||
- libuv
 | 
			
		||||
  https://github.com/libuv/libuv
 | 
			
		||||
  v1.11.0.zip
 | 
			
		||||
  v1.23.0.zip
 | 
			
		||||
  注意:teleport项目使用源代码直接编译,因此解压缩源代码到此即可。
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
[external_ver]
 | 
			
		||||
openssl = 1.0.2h,1000208f
 | 
			
		||||
libuv = 1.18.0
 | 
			
		||||
mbedtls = 2.6.1
 | 
			
		||||
openssl = 1.0.2p,1000208f
 | 
			
		||||
libuv = 1.23.0
 | 
			
		||||
mbedtls = 2.12.0
 | 
			
		||||
sqlite = 3170000
 | 
			
		||||
libssh = 0.7.5
 | 
			
		||||
libssh = 0.8.2
 | 
			
		||||
jsoncpp = 0.10.6
 | 
			
		||||
mongoose = 6.10
 | 
			
		||||
mongoose = 6.12
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue