s3:rpc_client: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Mon, 17 Jul 2023 12:59:06 +0000 (14:59 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 09:58:37 +0000 (09:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source3/rpc_client/cli_lsarpc.h
source3/rpc_client/cli_pipe.c
source3/rpc_client/cli_samr.c
source3/rpc_client/cli_samr.h
source3/rpc_client/cli_winreg.h
source3/rpc_client/cli_winreg_int.h
source3/rpc_client/cli_winreg_spoolss.h

index f716b049e1278a268ae4f2b70ec8c9ff361672ca..459120a21bf12dc67a55ed86d7f7a0bc3960b069 100644 (file)
 /**
  * @brief Open a LSA policy.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
  * @param[in]  sec_qos  Enable security quality of services.
  *
- * @param[in]  des_access The disired access rights to be granted.
+ * @param[in]  des_access The desired access rights to be granted.
  *
  * @param[out]  pol     A pointer to a rpc policy handle.
  *
@@ -60,13 +60,13 @@ NTSTATUS rpccli_lsa_open_policy(struct rpc_pipe_client *cli,
 /**
  * @brief Open a LSA policy.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
  * @param[in]  sec_qos  Enable security quality of services.
  *
- * @param[in]  des_access The disired access rights to be granted.
+ * @param[in]  des_access The desired access rights to be granted.
  *
  * @param[out]  pol     A pointer to a rpc policy handle.
  *
index 2af68b169afc2c347b7c3e90d337b6280c4d17ca..2606ce8321d715a21083d9e40fb5de7e3db5d3d3 100644 (file)
@@ -761,7 +761,7 @@ struct rpc_api_pipe_state {
        /* Incoming reply */
        DATA_BLOB reply_pdu;
        size_t reply_pdu_offset;
-       uint8_t endianess;
+       uint8_t endianness;
 };
 
 static void rpc_api_pipe_trans_done(struct tevent_req *subreq);
@@ -787,7 +787,7 @@ static struct tevent_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx,
        state->cli = cli;
        state->expected_pkt_type = expected_pkt_type;
        state->call_id = call_id;
-       state->endianess = DCERPC_DREP_LE;
+       state->endianness = DCERPC_DREP_LE;
 
        /*
         * Ensure we're not sending too much.
@@ -965,15 +965,15 @@ static void rpc_api_pipe_got_pdu(struct tevent_req *subreq)
                DEBUG(10,("rpc_api_pipe: On %s PDU data format is "
                          "big-endian.\n",
                          rpccli_pipe_txt(talloc_tos(), state->cli)));
-               state->endianess = 0x00; /* BIG ENDIAN */
+               state->endianness = 0x00; /* BIG ENDIAN */
        }
        /*
         * Check endianness on subsequent packets.
         */
-       if (state->endianess != state->pkt->drep[0]) {
+       if (state->endianness != state->pkt->drep[0]) {
                DEBUG(0,("rpc_api_pipe: Error : Endianness changed from %s to "
                         "%s\n",
-                        state->endianess?"little":"big",
+                        state->endianness?"little":"big",
                         state->pkt->drep[0]?"little":"big"));
                /*
                 * TODO: do a real async disconnect ...
index d48e8485af309b0c32f72e00a1e5a092d5ab822a..f5a6b173726e49b458cb96c50f23db98f03ba7fa 100644 (file)
@@ -566,7 +566,7 @@ NTSTATUS dcerpc_samr_chgpasswd_user4(struct dcerpc_binding_handle *h,
        return status;
 }
 
-/* This function returns the bizzare set of (max_entries, max_size) required
+/* This function returns the bizarre set of (max_entries, max_size) required
    for the QueryDisplayInfo RPC to actually work against a domain controller
    with large (10k and higher) numbers of users.  These values were
    obtained by inspection using ethereal and NT4 running User Manager. */
index 0764c3a84a2d4927810e06c3dc5d1f879c2662bd..5a4f39cefcecd1375f8834fb29091a32d1ad9e8c 100644 (file)
@@ -32,7 +32,7 @@
 /**
  * @brief Change the password of a user.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
@@ -62,13 +62,13 @@ NTSTATUS rpccli_samr_chgpasswd_user(struct rpc_pipe_client *cli,
 /**
  * @brief Change the password of a user based on username.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
  * @param[in]  srv_name_slash The server name with leading slashes.
  *
- * @param[in]  username The name of ther user.
+ * @param[in]  username The name of the user.
  *
  * @param[in]  newpassword The new password to set.
  *
@@ -96,15 +96,15 @@ NTSTATUS rpccli_samr_chgpasswd_user2(struct rpc_pipe_client *cli,
  * @brief Change the password of a user based on the user name given and using
  * blobs.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
  * @param[in]  srv_name_slash The server name with leading slashes.
  *
- * @param[in]  username The name of ther user.
+ * @param[in]  username The name of the user.
  *
- * @param[in]  new_nt_password_blob The new password as a crypted blob.
+ * @param[in]  new_nt_password_blob The new password as a encrypted blob.
  *
  * @param[in]  old_nt_hash_enc_blob The old password as a hash encoded blob.
  *
@@ -137,13 +137,13 @@ NTSTATUS rpccli_samr_chng_pswd_auth_crap(struct rpc_pipe_client *cli,
 /**
  * @brief
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
  * @param[in]  srv_name_slash The server name with leading slashes.
  *
- * @param[in]  username The name of ther user.
+ * @param[in]  username The name of the user.
  *
  * @param[in]  newpassword The new password to set.
  *
@@ -195,16 +195,16 @@ NTSTATUS dcerpc_samr_chgpasswd_user4(struct dcerpc_binding_handle *h,
  *
  * @param[out] max_entries A pointer to store maximum entries value.
  *
- * @param[out] max_size A poiter to store the maximum size value.
+ * @param[out] max_size A pointer to store the maximum size value.
  */
 void dcerpc_get_query_dispinfo_params(int loop_count,
                                      uint32_t *max_entries,
                                      uint32_t *max_size);
 
 /**
- * @brief Try if we can connnect to samr.
+ * @brief Try if we can connect to samr.
  *
- * @param[in]  h        The dcerpc binding hanlde to use.
+ * @param[in]  h        The dcerpc binding handle to use.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
index b562531ad78d5afc7596b24b6c6b63597b142e5b..c8dc3f681a127c675af793ce02963580f762890d 100644 (file)
@@ -27,7 +27,7 @@
  *
  * Get the data that is associated with the named value of a specified registry
  * open key. This function ensures that the key is a dword and converts it
- * corretly.
+ * correctly.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
@@ -328,7 +328,7 @@ NTSTATUS dcerpc_winreg_set_sd(TALLOC_CTX *mem_ctx,
  * @brief Add a value to the multi sz data.
  *
  * This reads the multi sz data from the given value and adds the data to the
- * multi sz. Then it saves it to the regsitry.
+ * multi sz. Then it saves it to the registry.
  *
  * @param[in]  mem_ctx  The memory context to use.
  *
@@ -393,9 +393,9 @@ NTSTATUS dcerpc_winreg_enum_keys(TALLOC_CTX *mem_ctx,
  *
  * @param[out] pnames A pointer to store all the names of the values we found.
  *
- * @param[out] _type A pointer to store all the types coresponding with the
+ * @param[out] _type A pointer to store all the types corresponding with the
  *                  values found.
- * @param[out] pdata A pointer to store the data coresponding to the values.
+ * @param[out] pdata A pointer to store the data corresponding to the values.
  *
  * @param[out] pwerr A pointer to the WERROR. WERR_OK on success
  *                  WERR_OK on success, the corresponding DOS error
index 513416ab769a92909d0ffd67b50b489f99dd7d4f..9584088376509f54d85b63a3b05fcc2db88ad65f 100644 (file)
@@ -26,7 +26,7 @@ struct auth_session_info;
 struct dcerpc_binding_handle;
 
 /**
- * @brief Connect to the interal winreg server and open the given key.
+ * @brief Connect to the internal winreg server and open the given key.
  *
  * The function will create the needed subkeys if they don't exist.
  *
@@ -63,7 +63,7 @@ NTSTATUS dcerpc_winreg_int_openkey(TALLOC_CTX *mem_ctx,
                                   WERROR *pwerr);
 
 /**
- * @brief Connect to the interal winreg server and open the given key.
+ * @brief Connect to the internal winreg server and open the given key.
  *
  * The function will create the needed subkeys if they don't exist.
  *
index 0dc1126a0422bf2bc704f0b02799fb44391a1dd4..c80ca724badb7a51966063cd558e420c0ca2ef45 100644 (file)
@@ -111,7 +111,7 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
 
 
 /**
- * @brief Get the inforamtion of a printer stored in the registry.
+ * @brief Get the information of a printer stored in the registry.
  *
  * @param[in]  mem_ctx  The talloc memory context to use.
  *
@@ -218,7 +218,7 @@ WERROR winreg_set_printserver_secdesc(TALLOC_CTX *mem_ctx,
  *
  * @param[in]  type     The type of the value to use.
  *
* @param[in]  data     The data which sould be saved under the given value.
o @param[in]  data     The data which should be saved under the given value.
  *
  * @param[in]  data_size The size of the data.
  *
@@ -613,7 +613,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
  *
  * @param[in]  core_driver_guid The core driver guid.
  *
- * @param[out] core_printer_driver The returned core printer driver definiton
+ * @param[out] core_printer_driver The returned core printer driver definition
  *
  * @return              On success WERR_OK, a corresponding DOS error is
  *                      something went wrong.