History log of /sssd-io/src/util/crypto/libcrypto/crypto_sha512crypt.c
Revision Date Author Comments Expand
2951a9a84bd85f384213a3e071ffc167907df2d7 13-Feb-2018 Lukas Slebodnik <lslebodn@redhat.com>

CRYPTO: Suppress warning Wstringop-truncation src/util/crypto/nss/nss_sha512crypt.c: In function ‘sha512_crypt_r’: src/util/crypto/nss/nss_sha512crypt.c:270:10: warning: ‘stpncpy’ output truncated copying 3 bytes from a string of length 3 [-Wstringop-truncation] cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ man gcc says: As another example, the following call to "strncpy" results in copying to "d" just the characters preceding the terminating NUL, without appending the NUL to the end. Assuming the result of "strncpy" is necessarily a NUL-terminated string is a common mistake, and so the call is diagnosed. To avoid the warning when the result is not expected to be NUL-terminated, call "memcpy" instead. void copy (char *d, const char *s) { strncpy (d, s, strlen (s)); } Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

a02a5ed51178b2cbede0396d66aed716b8898096 25-Oct-2017 René Genz <liebundartig@freenet.de>

Fix minor spelling mistakes Merges: https://pagure.io/SSSD/sssd/pull-request/3556 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

/sssd-io/contrib/sssd.spec.in /sssd-io/src/db/sysdb_private.h /sssd-io/src/db/sysdb_views.c /sssd-io/src/examples/sssd-example.conf /sssd-io/src/lib/idmap/sss_idmap.doxy.in /sssd-io/src/man/sssd-secrets.5.xml /sssd-io/src/providers/ad/ad_gpo.c /sssd-io/src/providers/be_dyndns.c /sssd-io/src/providers/data_provider/dp_request.c /sssd-io/src/providers/krb5/krb5_child.c /sssd-io/src/providers/ldap/sdap_async_sudo.c /sssd-io/src/responder/kcm/kcmsrv_ccache_json.c /sssd-io/src/responder/kcm/kcmsrv_op_queue.c /sssd-io/src/sbus/sssd_dbus_connection.c /sssd-io/src/shared/safealign.h /sssd-io/src/sss_client/autofs/sss_autofs.c /sssd-io/src/sss_client/idmap/sss_nss_idmap.doxy.in /sssd-io/src/sss_client/libwbclient/wbc_pwd_sssd.c /sssd-io/src/sss_client/sudo/sss_sudo.h /sssd-io/src/tests/cmocka/common_mock_resp_dp.c /sssd-io/src/tests/cmocka/test_sbus_opath.c /sssd-io/src/tools/common/sss_process.c /sssd-io/src/tools/common/sss_process.h /sssd-io/src/tools/sssctl/sssctl.c /sssd-io/src/tools/sssctl/sssctl_data.c crypto_sha512crypt.c /sssd-io/src/util/crypto/nss/nss_sha512crypt.c /sssd-io/src/util/server.c /sssd-io/src/util/sss_ini.h /sssd-io/src/util/tev_curl.c /sssd-io/src/util/util_lock.c
8f1316a0c677f211eaaa1346e21a03446b8c4fb1 20-Oct-2016 Lukas Slebodnik <lslebodn@redhat.com>

crypto: Port libcrypto code to openssl-1.1 EVP_MD_CTX and EVP_CIPHER_CTX are opaque in openssl-1.1 Reviewed-by: Tomas Mraz <tmraz@redhat.com>

83e1ea9e24aabe6ade180649ecfc9c253ad19395 18-May-2014 Lukas Slebodnik <lslebodn@redhat.com>

CRYPTO: Use unprefixed version of function stpncpy glibc contains two versions of finction stpncpy sh-4.2$ nm --dynamic --defined-only /lib64/libc.so.6 | grep stpncpy 0000003ce1c89b00 i stpncpy 0000003ce1c89b00 i __stpncpy 0000003ce1d040a0 T __stpncpy_chk We should use more portable version of stpncpy without prefix with underscores. The function __stpncpy was used in initial veersion e65c65fc710fa030bfb8319efc43fcdc9ce5a26f, which was based on http://people.redhat.com/drepper/SHA-crypt.txt Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

1658c567191c35beaddffafdb079abe33248037b 28-Aug-2013 Lukas Slebodnik <lslebodn@redhat.com>

UTIL: Create new wraper header file sss_endian.h Some platform have header file endian.h and anothers have sys/endian.h. We nedd to use conditional build to handle it correctly, therefore new header file sss_endian.h was created.

e07a94a66985b674c5df11ca466792902164c4e2 26-Jun-2012 George McCollister <George.McCollister@gmail.com>

libcrypto fully implemented Implemented working versions of the following functions for libcrypto: sss_base64_encode sss_base64_decode sss_hmac_sha1 sss_password_encrypt sss_password_decrypt test_encrypt_decrypt now expects EOK from libcrypto. test_hmac_sha1 now expects EOK from libcrypto. Added test_base64_encode to test base64 encoding implementation. Added test_base64_decode to test base64 decoding implementation. Signed-off-by: George McCollister <George.McCollister@gmail.com>

324fb26ba803a999bedc29e93c46c84f27abf5b7 23-May-2011 Sumit Bose <sbose@redhat.com>

Set _GNU_SOURCE globally

3b08dec5ee634f83ee18e1753d5ffe0ac5e3c458 08-Sep-2010 Jakub Hrozek <jhrozek@redhat.com>

Move crypto functions into its own subdir A refactoring patch that creates a common util/crypto subdir with per-implementation subdirectories for each underlying crypto library supported by SSSD.