* @param[in] mem_ctx The memory context for the result.
* @param[in] ev The event context to work on.
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier.
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @see smb1cli_close_send(), smb1cli_close_recv()
*
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier.
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[in] mem_ctx The memory context for the result.
* @param[in] ev The event context to work on.
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[in] req A tevent request created with smb1cli_ntcreatex_send()
* @param[out] pfnum The file id of the opened file or directory.
*
- * @return NT_STATUS_OK on succsess
+ * @return NT_STATUS_OK on success
*/
NTSTATUS smb1cli_ntcreatex_recv(struct tevent_req *req, uint16_t *pfnum)
{
* @see smb1cli_ntcreatex_send() smb1cli_ntcreatex_recv()
*
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[in] SecurityFlags
* @param[out] pfnum The file id representing the file or directory created or opened.
*
- * @return NT_STATUS_OK on succsess
+ * @return NT_STATUS_OK on success
*/
NTSTATUS smb1cli_ntcreatex(struct smbXcli_conn *conn,
uint32_t timeout_msec,
* @param[in] mem_ctx The memory context for the result.
* @param[in] ev The event context to work on.
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[out] received The number of bytes received.
* @param[out] rcvbuf Pointer to the bytes received.
*
- * @return NT_STATUS_OK or STATUS_BUFFER_OVERFLOW on succsess.
+ * @return NT_STATUS_OK or STATUS_BUFFER_OVERFLOW on success.
*/
NTSTATUS smb1cli_readx_recv(struct tevent_req *req,
uint32_t *received,
* @param[in] mem_ctx The memory context for the result.
* @param[in] ev The event context to work on.
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[out] pwritten The number of bytes written to the file.
* @param[out] pavailable Valid if writing to a named pipe or IO device.
*
- * @return NT_STATUS_OK on succsess.
+ * @return NT_STATUS_OK on success.
*/
NTSTATUS smb1cli_writex_recv(struct tevent_req *req, uint32_t *pwritten, uint16_t *pavailable)
{
* @see smb1cli_writex_send(), smb1cli_writex_recv()
*
* @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
* @param[in] pid The process identifier
* @param[in] tcon The smb tree connect.
* @param[in] session The smb session.
* @param[out] pwritten The number of bytes written to the file.
* @param[out] pavailable Valid if writing to a named pipe or IO device.
*
- * @return NT_STATUS_OK on succsess.
+ * @return NT_STATUS_OK on success.
*/
NTSTATUS smb1cli_writex(struct smbXcli_conn *conn,
uint32_t timeout_msec,
* nonce wrap, or the security of the whole
* communication and the keys is destroyed.
* We must drop the connection once we have
- * transfered too much data.
+ * transferred too much data.
*
* NOTE: We assume nonces greater than 8 bytes.
*/
if (!NT_STATUS_IS_OK(status)) {
/*
* Only check the signature of the last response
- * of a successfull session auth. This matches
+ * of a successful session auth. This matches
* Windows behaviour for NTLM auth and reauth.
*/
state->smb2.require_signed_response = false;
* nonce wrap, or the security of the whole
* communication and the keys is destroyed.
* We must drop the connection once we have
- * transfered too much data.
+ * transferred too much data.
*
* NOTE: We assume nonces greater than 8 bytes.
*/
*/
#define NBSSmessage 0x00 /* session message */
#define NBSSrequest 0x81 /* session request */
-#define NBSSpositive 0x82 /* positiv session response */
-#define NBSSnegative 0x83 /* negativ session response */
+#define NBSSpositive 0x82 /* positive session response */
+#define NBSSnegative 0x83 /* negative session response */
#define NBSSretarget 0x84 /* retarget session response */
#define NBSSkeepalive 0x85 /* keepalive */
#define FILE_CASE_PRESERVED_NAMES 0x00000002
#define FILE_UNICODE_ON_DISK 0x00000004
/* According to cifs9f, this is 4, not 8 */
-/* Acconding to testing, this actually sets the security attribute! */
+/* According to testing, this actually sets the security attribute! */
#define FILE_PERSISTENT_ACLS 0x00000008
#define FILE_FILE_COMPRESSION 0x00000010
#define FILE_VOLUME_QUOTAS 0x00000020
/* Used by the SMB1 signing functions. */
struct smb1_signing_state {
- /* is signing localy allowed */
+ /* is signing locally allowed */
bool allowed;
- /* is signing localy desired */
+ /* is signing locally desired */
bool desired;
- /* is signing localy mandatory */
+ /* is signing locally mandatory */
bool mandatory;
/* is signing negotiated by the peer */
* tstream_disconnect_send()/_recv(), this will
* never be called.
*
- * We use a maximun timeout of 1 second == 1000 msec.
+ * We use a maximum timeout of 1 second == 1000 msec.
*/
cli_nps->timeout = MIN(cli_nps->timeout, 1000);
}
/***********************************************************
- Common function for pushing stings, used by smb_bytes_push_str()
+ Common function for pushing strings, used by smb_bytes_push_str()
and trans_bytes_push_str(). Only difference is the align_odd
parameter setting.
***********************************************************/
*
* @param[in] str The string to translate.
*
- * @return A corresponding enum @smb_signing_setting tranlated from the string.
+ * @return A corresponding enum @smb_signing_setting translated from the string.
*/
enum smb_signing_setting smb_signing_setting_translate(const char *str)
{
*
* @param[in] str The string to translate.
*
- * @return A corresponding enum @smb_encryption_setting tranlated from the
+ * @return A corresponding enum @smb_encryption_setting translated from the
* string.
*/
enum smb_encryption_setting smb_encryption_setting_translate(const char *str)