Skip to content

Commit

Permalink
Merge pull request #20 from Dualog/enable-smb-dialects
Browse files Browse the repository at this point in the history
Enable smb dialects
  • Loading branch information
legendarymember authored Oct 2, 2024
2 parents 181b31d + f011a4b commit 8d0b159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
run: sed 's/GITHUB_TOKEN/${{ secrets.NUGET_TOKEN }}/g' .nuget.config > nuget.config

- name: Build packages
run: dotnet build -c Release /p:PublicRelease=true
run: dotnet build -c Release /p:PublicRelease=true /p:DefineConstants=SMB302_CLIENT

- name: Pack packages
run: dotnet pack -c Release /p:PublicRelease=true
run: dotnet pack -c Release /p:PublicRelease=true /p:DefineConstants=SMB302_CLIENT

- name: Publish Package
run: dotnet nuget push ./**/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json
4 changes: 4 additions & 0 deletions SMBLibrary/Client/SMB2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,14 @@ public SMB2Client()
request.Dialects.Add(SMB2Dialect.SMB202);
request.Dialects.Add(SMB2Dialect.SMB210);
request.Dialects.Add(SMB2Dialect.SMB300);
#if SMB302_CLIENT
request.Dialects.Add(SMB2Dialect.SMB302);
#endif
#if SMB311_CLIENT
request.Dialects.Add(SMB2Dialect.SMB311);
request.NegotiateContextList = GetNegotiateContextList();
m_preauthIntegrityHashValue = new byte[64];
#endif
await TrySendCommandAsync(request, cancellationToken);
var command = WaitForCommand(request.MessageID);

Expand Down

0 comments on commit 8d0b159

Please sign in to comment.