You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Read the output of sp_describe_parameter_encryption
785
-
/// </summary>
786
-
/// <param name="ds">Resultset from calling to sp_describe_parameter_encryption</param>
787
-
/// <param name="describeParameterEncryptionRpcOriginalRpcMap"> Readonly dictionary with the map of parameter encryption rpc requests with the corresponding original rpc requests.</param>
788
-
/// <param name="isRetry">Indicates if this is a retry from a failed call.</param>
"describeParameterEncryptionRpcOriginalRpcMap should be non-null if and only if it is _batchRPCMode.");
799
-
800
-
// Indicates the current result set we are reading, used in BatchRPCMode, where we can have more than 1 result set.
801
-
intresultSetSequenceNumber=0;
802
-
803
-
// A flag that used in BatchRPCMode, to assert the result of lookup in to the dictionary maintaining the map of describe parameter encryption requests
804
-
// and the corresponding original rpc requests.
805
-
boollookupDictionaryResult;
806
-
807
-
// @TODO: If this is supposed to read the results of sp_describe_parameter_encryption there should only ever be 2/3 result sets. So no need to loop this.
808
-
do
785
+
boolattestationInfoRead=false;
786
+
while(ds.Read())
809
787
{
810
-
if(_batchRPCMode)
811
-
{
812
-
// If we got more RPC results from the server than what was requested.
// 2) Find the RPC command that generated this TCE request
829
-
_SqlRPCrpc;
830
-
if(_batchRPCMode)
831
-
{
832
-
Debug.Assert(_sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber]!=null,"_sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber] should not be null.");
833
-
834
-
// Lookup in the dictionary to get the original rpc request corresponding to the describe parameter encryption request
835
-
// pointed to by _sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber]
"Describe Parameter Encryption RPC request key must be present in the dictionary describeParameterEncryptionRpcOriginalRpcMap");
841
-
Debug.Assert(rpc!=null,
842
-
"Describe Parameter Encryption RPC request's corresponding original rpc request must not be null in the dictionary describeParameterEncryptionRpcOriginalRpcMap");
843
-
}
844
-
else
845
-
{
846
-
rpc=_rpcArrayOf1[0];
847
-
}
848
-
849
-
Debug.Assert(rpc!=null,"rpc should not be null here.");
850
-
851
-
// 3) Read the second result set containing the cipher metadata
/// Read the output of sp_describe_parameter_encryption
1051
+
/// </summary>
1052
+
/// <param name="ds">Resultset from calling to sp_describe_parameter_encryption</param>
1053
+
/// <param name="describeParameterEncryptionRpcOriginalRpcMap"> Readonly dictionary with the map of parameter encryption rpc requests with the corresponding original rpc requests.</param>
1054
+
/// <param name="isRetry">Indicates if this is a retry from a failed call.</param>
"describeParameterEncryptionRpcOriginalRpcMap should be non-null if and only if it is _batchRPCMode.");
1065
+
1066
+
// Indicates the current result set we are reading, used in BatchRPCMode, where we can
1067
+
// have more than 1 result set.
1068
+
intresultSetSequenceNumber=0;
1069
+
1070
+
// A flag that used in BatchRPCMode, to assert the result of lookup in to the
1071
+
// dictionary maintaining the map of describe parameter encryption requests and the
1072
+
// corresponding original rpc requests.
1073
+
boollookupDictionaryResult;
1074
+
1075
+
// @TODO: If this is supposed to read the results of sp_describe_parameter_encryption there should only ever be 2/3 result sets. So no need to loop this.
// 2) Find the RPC command that generated this TCE request
1097
+
_SqlRPCrpc;
1098
+
if(_batchRPCMode)
1099
+
{
1100
+
Debug.Assert(_sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber]!=null,"_sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber] should not be null.");
1155
1101
1156
-
EnclaveDelegate.Instance.CreateEnclaveSession(
1157
-
attestationProtocol,
1158
-
enclaveType,
1159
-
GetEnclaveSessionParameters(),
1160
-
attestationInfo,
1161
-
enclaveAttestationParameters,
1162
-
customData,
1163
-
customDataLength,
1164
-
isRetry);
1165
-
enclaveAttestationParameters=null;
1166
-
attestationInfoRead=true;
1102
+
// Lookup in the dictionary to get the original rpc request corresponding to the describe parameter encryption request
1103
+
// pointed to by _sqlRPCParameterEncryptionReqArray[resultSetSequenceNumber]
"Describe Parameter Encryption RPC request key must be present in the dictionary describeParameterEncryptionRpcOriginalRpcMap");
1110
+
Debug.Assert(rpc!=null,
1111
+
"Describe Parameter Encryption RPC request's corresponding original rpc request must not be null in the dictionary describeParameterEncryptionRpcOriginalRpcMap");
1112
+
}
1113
+
else
1114
+
{
1115
+
rpc=_rpcArrayOf1[0];
1116
+
}
1117
+
1118
+
Debug.Assert(rpcis not null,"rpc should not be null here.");
1119
+
1120
+
// 3) Read the second result set containing the per-parameter cipher metadata
0 commit comments