Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/mongo/auth/aws/conversation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ def client_first_payload
client_first_data.to_bson.to_s
end

def wrap_data(data)
BSON::Binary.new(data.to_bson.to_s)
end

def client_nonce
@client_nonce ||= SecureRandom.random_bytes(32)
end
Expand Down
7 changes: 0 additions & 7 deletions lib/mongo/auth/scram_conversation_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,6 @@ def hmac(data, key)
# @since 2.0.0
attr_reader :iterations

# Get the data from the returned payload.
#
# @api private
#
# @since 2.0.0
attr_reader :payload_data

# Get the server nonce from the payload.
#
# @api private
Expand Down
7 changes: 1 addition & 6 deletions lib/mongo/auth/stringprep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ def mapping(c, mappings)
end

def normalize!(out)
if String.method_defined?(:unicode_normalize!)
out.unicode_normalize!(:nfkc)
else
require 'mongo/auth/stringprep/unicode_normalize/normalize'
out.replace(UnicodeNormalize.normalize(out, :nfkc))
end
out.unicode_normalize!(:nfkc)
end

def table_contains?(table, c)
Expand Down
173 changes: 0 additions & 173 deletions lib/mongo/auth/stringprep/unicode_normalize/normalize.rb

This file was deleted.

Loading
Loading