s3:utils: Use talloc instead of malloc functions
[samba.git] / source4 / dsdb / samdb / ldb_modules / encrypted_secrets.c
index d3ce7e31642121bf21fe2f9778914c507ade3bff..1f04389d55a644f5650cfd36cae4246c0a859ab4 100644 (file)
@@ -50,6 +50,7 @@ static const size_t num_secret_attributes = ARRAY_SIZE(secret_attributes);
 #define NUMBER_OF_KEYS 1
 #define SECRETS_KEY_FILE "encrypted_secrets.key"
 
+#undef strcasecmp
 
 struct es_data {
        /*
@@ -379,7 +380,7 @@ static const gnutls_datum_t convert_from_data_blob(DATA_BLOB blob) {
  * @param ldb ldb context, to allow logging.
  * @param es  the encrypted secret
  *
- * @return The gnutls algoritm number, or 0 if there is no match.
+ * @return The gnutls algorithm number, or 0 if there is no match.
  *
  */
 static int gnutls_get_algorithm(struct ldb_context *ldb,
@@ -566,7 +567,7 @@ error_exit:
  * @brief Decrypt data encrypted using an aead algorithm.
  *
  * Decrypt the data in ed and insert it into ev. The data was encrypted
- * with one of the gnutls aead compatable algorithms.
+ * with one of the gnutls aead compatible algorithms.
  *
  * @param err  Pointer to an error code, set to:
  *             LDB_SUCESS               If the value was successfully decrypted