SSHMacAlgorithms Property

A comma-separated list containing all allowable message authentication algorithms.

Syntax

ANSI (Cross Platform)
char* GetSSHMacAlgorithms();
int SetSSHMacAlgorithms(const char* lpszSSHMacAlgorithms); Unicode (Windows) LPWSTR GetSSHMacAlgorithms();
INT SetSSHMacAlgorithms(LPCWSTR lpszSSHMacAlgorithms);
@property (nonatomic,readwrite,assign,getter=SSHMacAlgorithms,setter=setSSHMacAlgorithms:) NSString* SSHMacAlgorithms;
- (NSString*)SSHMacAlgorithms;
- (void)setSSHMacAlgorithms:(NSString*)newSSHMacAlgorithms;
#define PID_SSHCLIENT_SSHMACALGORITHMS 28

IPWORKSSSH_EXTERNAL void* IPWORKSSSH_CALL IPWorksSSH_SSHClient_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSSH_EXTERNAL int IPWORKSSSH_CALL IPWorksSSH_SSHClient_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

"hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256-96,hmac-sha2-512-96,hmac-ripemd160-96,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com"

Remarks

SSH allows different algorithms to be negotiated for use when establishing the security layer of the connection. SSHMacAlgorithms controls the message authentication code (MAC) algorithm list supplied by the class to the SSHHost. It is a comma-separated list containing the names of MAC algorithms as defined by section 6.4 of the SSH Transport Layer specification (RFC 4253).

The value of this property must be a comma-separated list containing one or more of the following values:

  • hmac-sha1
  • hmac-md5
  • hmac-sha1-96
  • hmac-md5-96
  • hmac-sha2-256
  • hmac-sha2-256-96
  • hmac-sha2-512
  • hmac-sha2-512-96
  • hmac-ripemd160
  • hmac-ripemd160-96
  • hmac-sha2-256-etm@openssh.com
  • hmac-sha2-512-etm@openssh.com

Data Type

String

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 C++ Edition - Version 20.0 [Build 8501]