mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
Internally: make the agent backend guards unique for each backend, make
them contain the backend name. Use them in `agent.c`, move them to a
separate header and also reuse them from `version.c`.
Ref: https://github.com/libssh2/libssh2/pull/2285#discussion_r3572085858
Follow-up to 2673970d2a #2178
Closes #2312
1.0 KiB
1.0 KiB
c, SPDX-License-Identifier, Title, Section, Source, See-also
| c | SPDX-License-Identifier | Title | Section | Source | See-also | ||
|---|---|---|---|---|---|---|---|
| Copyright (C) The libssh2 project and its contributors. | BSD-3-Clause | libssh2_build_options | 3 | libssh2 |
|
NAME
libssh2_build_options - return build-time options
SYNOPSIS
#include <libssh2.h>
const char *libssh2_build_options(void);
DESCRIPTION
Return the full list of options available at build time, along with their enabled/disabled statuses.
RETURN VALUE
A read-only, space-separated list of key:value pairs describing build options.
Options use on or off, except:
crypto, which reports one of these values:
AWS-LC, BoringSSL, Libgcrypt, LibreSSL, mbedTLS, OpenSSL,
OpenSSL/1.1.1, OS400QC3, WinCNG, wolfSSL.
agent, which is listed for each supported agent backend:
Pageant (Windows-specific), OpenSSH (Windows-specific), Unix.
EXAMPLE
printf("libssh2 build options: %s", libssh2_build_options());
AVAILABILITY
Added in libssh2 1.12.0