@@ -91,17 +91,17 @@ from a in message.ServerHostKeyAlgorithms
91
91
{
92
92
_logger . LogTrace ( "[{SessionId}] Host key algorithm: we offer {WeOffer}" ,
93
93
Session . SessionIdHex ,
94
- session . ConnectionInfo . HostKeyAlgorithms . Keys . Join ( "," ) ) ;
94
+ string . Join ( ',' , session . ConnectionInfo . HostKeyAlgorithms . Keys ) ) ;
95
95
96
96
_logger . LogTrace ( "[{SessionId}] Host key algorithm: they offer {TheyOffer}" ,
97
97
Session . SessionIdHex ,
98
- message . ServerHostKeyAlgorithms . Join ( "," ) ) ;
98
+ string . Join ( ',' , message . ServerHostKeyAlgorithms ) ) ;
99
99
}
100
100
101
101
if ( hostKeyAlgorithmName is null )
102
102
{
103
103
throw new SshConnectionException (
104
- $ "No matching host key algorithm (server offers { message . ServerHostKeyAlgorithms . Join ( "," ) } )",
104
+ $ "No matching host key algorithm (server offers { string . Join ( ',' , message . ServerHostKeyAlgorithms ) } )",
105
105
DisconnectReason . KeyExchangeFailed ) ;
106
106
}
107
107
@@ -118,17 +118,17 @@ from a in message.EncryptionAlgorithmsClientToServer
118
118
{
119
119
_logger . LogTrace ( "[{SessionId}] Encryption client to server: we offer {WeOffer}" ,
120
120
Session . SessionIdHex ,
121
- session . ConnectionInfo . Encryptions . Keys . Join ( "," ) ) ;
121
+ string . Join ( ',' , session . ConnectionInfo . Encryptions . Keys ) ) ;
122
122
123
123
_logger . LogTrace ( "[{SessionId}] Encryption client to server: they offer {TheyOffer}" ,
124
124
Session . SessionIdHex ,
125
- message . EncryptionAlgorithmsClientToServer . Join ( "," ) ) ;
125
+ string . Join ( ',' , message . EncryptionAlgorithmsClientToServer ) ) ;
126
126
}
127
127
128
128
if ( clientEncryptionAlgorithmName is null )
129
129
{
130
130
throw new SshConnectionException (
131
- $ "No matching client encryption algorithm (server offers { message . EncryptionAlgorithmsClientToServer . Join ( "," ) } )",
131
+ $ "No matching client encryption algorithm (server offers { string . Join ( ',' , message . EncryptionAlgorithmsClientToServer ) } )",
132
132
DisconnectReason . KeyExchangeFailed ) ;
133
133
}
134
134
@@ -145,17 +145,17 @@ from a in message.EncryptionAlgorithmsServerToClient
145
145
{
146
146
_logger . LogTrace ( "[{SessionId}] Encryption server to client: we offer {WeOffer}" ,
147
147
Session . SessionIdHex ,
148
- session . ConnectionInfo . Encryptions . Keys . Join ( "," ) ) ;
148
+ string . Join ( ',' , session . ConnectionInfo . Encryptions . Keys ) ) ;
149
149
150
150
_logger . LogTrace ( "[{SessionId}] Encryption server to client: they offer {TheyOffer}" ,
151
151
Session . SessionIdHex ,
152
- message . EncryptionAlgorithmsServerToClient . Join ( "," ) ) ;
152
+ string . Join ( ',' , message . EncryptionAlgorithmsServerToClient ) ) ;
153
153
}
154
154
155
155
if ( serverDecryptionAlgorithmName is null )
156
156
{
157
157
throw new SshConnectionException (
158
- $ "No matching server encryption algorithm (server offers { message . EncryptionAlgorithmsServerToClient . Join ( "," ) } )",
158
+ $ "No matching server encryption algorithm (server offers { string . Join ( ',' , message . EncryptionAlgorithmsServerToClient ) } )",
159
159
DisconnectReason . KeyExchangeFailed ) ;
160
160
}
161
161
@@ -174,17 +174,17 @@ from a in message.MacAlgorithmsClientToServer
174
174
{
175
175
_logger . LogTrace ( "[{SessionId}] MAC client to server: we offer {WeOffer}" ,
176
176
Session . SessionIdHex ,
177
- session . ConnectionInfo . HmacAlgorithms . Keys . Join ( "," ) ) ;
177
+ string . Join ( ',' , session . ConnectionInfo . HmacAlgorithms . Keys ) ) ;
178
178
179
179
_logger . LogTrace ( "[{SessionId}] MAC client to server: they offer {TheyOffer}" ,
180
180
Session . SessionIdHex ,
181
- message . MacAlgorithmsClientToServer . Join ( "," ) ) ;
181
+ string . Join ( ',' , message . MacAlgorithmsClientToServer ) ) ;
182
182
}
183
183
184
184
if ( clientHmacAlgorithmName is null )
185
185
{
186
186
throw new SshConnectionException (
187
- $ "No matching client MAC algorithm (server offers { message . MacAlgorithmsClientToServer . Join ( "," ) } )",
187
+ $ "No matching client MAC algorithm (server offers { string . Join ( ',' , message . MacAlgorithmsClientToServer ) } )",
188
188
DisconnectReason . KeyExchangeFailed ) ;
189
189
}
190
190
@@ -204,17 +204,17 @@ from a in message.MacAlgorithmsServerToClient
204
204
{
205
205
_logger . LogTrace ( "[{SessionId}] MAC server to client: we offer {WeOffer}" ,
206
206
Session . SessionIdHex ,
207
- session . ConnectionInfo . HmacAlgorithms . Keys . Join ( "," ) ) ;
207
+ string . Join ( ',' , session . ConnectionInfo . HmacAlgorithms . Keys ) ) ;
208
208
209
209
_logger . LogTrace ( "[{SessionId}] MAC server to client: they offer {TheyOffer}" ,
210
210
Session . SessionIdHex ,
211
- message . MacAlgorithmsServerToClient . Join ( "," ) ) ;
211
+ string . Join ( ',' , message . MacAlgorithmsServerToClient ) ) ;
212
212
}
213
213
214
214
if ( serverHmacAlgorithmName is null )
215
215
{
216
216
throw new SshConnectionException (
217
- $ "No matching server MAC algorithm (server offers { message . MacAlgorithmsServerToClient . Join ( "," ) } )",
217
+ $ "No matching server MAC algorithm (server offers { string . Join ( ',' , message . MacAlgorithmsServerToClient ) } )",
218
218
DisconnectReason . KeyExchangeFailed ) ;
219
219
}
220
220
@@ -232,17 +232,17 @@ from a in message.CompressionAlgorithmsClientToServer
232
232
{
233
233
_logger . LogTrace ( "[{SessionId}] Compression client to server: we offer {WeOffer}" ,
234
234
Session . SessionIdHex ,
235
- session . ConnectionInfo . CompressionAlgorithms . Keys . Join ( "," ) ) ;
235
+ string . Join ( ',' , session . ConnectionInfo . CompressionAlgorithms . Keys ) ) ;
236
236
237
237
_logger . LogTrace ( "[{SessionId}] Compression client to server: they offer {TheyOffer}" ,
238
238
Session . SessionIdHex ,
239
- message . CompressionAlgorithmsClientToServer . Join ( "," ) ) ;
239
+ string . Join ( ',' , message . CompressionAlgorithmsClientToServer ) ) ;
240
240
}
241
241
242
242
if ( compressionAlgorithmName is null )
243
243
{
244
244
throw new SshConnectionException (
245
- $ "No matching client compression algorithm (server offers { message . CompressionAlgorithmsClientToServer . Join ( "," ) } )",
245
+ $ "No matching client compression algorithm (server offers { string . Join ( ',' , message . CompressionAlgorithmsClientToServer ) } )",
246
246
DisconnectReason . KeyExchangeFailed ) ;
247
247
}
248
248
@@ -259,17 +259,17 @@ from a in message.CompressionAlgorithmsServerToClient
259
259
{
260
260
_logger . LogTrace ( "[{SessionId}] Compression server to client: we offer {WeOffer}" ,
261
261
Session . SessionIdHex ,
262
- session . ConnectionInfo . CompressionAlgorithms . Keys . Join ( "," ) ) ;
262
+ string . Join ( ',' , session . ConnectionInfo . CompressionAlgorithms . Keys ) ) ;
263
263
264
264
_logger . LogTrace ( "[{SessionId}] Compression server to client: they offer {TheyOffer}" ,
265
265
Session . SessionIdHex ,
266
- message . CompressionAlgorithmsServerToClient . Join ( "," ) ) ;
266
+ string . Join ( ',' , message . CompressionAlgorithmsServerToClient ) ) ;
267
267
}
268
268
269
269
if ( decompressionAlgorithmName is null )
270
270
{
271
271
throw new SshConnectionException (
272
- $ "No matching server compression algorithm (server offers { message . CompressionAlgorithmsServerToClient . Join ( "," ) } )",
272
+ $ "No matching server compression algorithm (server offers { string . Join ( ',' , message . CompressionAlgorithmsServerToClient ) } )",
273
273
DisconnectReason . KeyExchangeFailed ) ;
274
274
}
275
275
0 commit comments