Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/sun/net/ftp/EncDec.doc
41149 views
��ࡱ�>��	()����'������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ܥhc�	e+	M��00CCCCCZCZCZCZCZCvC�C(ZC�Ks�C�CLDDDDDDcIeIeIeIa�I�J�KoLX�LB�KCDDDDD�KFGCCD�CFGFGFGDFCDCDcIp8�Ԛ�C.C,CCCCDcIFGFGEncodeObject/DecodeObject Functions
These are generalized encoding and decoding functions, capable of encoding and decoding certificates and certificate revocation lists (CRLs).
The functions definitions can be found in Wincrypt.h.
FunctionDescriptionDecodeObjectDecodes a structure of type lpszStructureType.EncodeObjectEncodes a structure of type lpszStructureType.
The following table lists the defined structure types that are used with encode and decode operations.
lpszStructureTypeCorresponding Data Structure<< Not defined at document print time >>CERT_INFO<< Not defined at document print time >>CERT_REQUEST_INFO<< Not defined at document print time >>CRL_INFO<< Not defined at document print time >>EXTENSIONS<< Not defined at document print time >>NAME_INFO<< Not defined at document print time >>NAME_VALUE<< Not defined at document print time >>PUBLIC_KEY_INFO

DecodeObject
#include <wincrypt.h>
BOOL WINAPI DecodeObject(    DWORD                         dwEncodingType,// in    LPCSTR                         lpszStructureType,// in    const BYTE *                 pbEncoded,// in    DWORD                         cbEncoded,// in    void *                              pvoid,// out    DWORD *                      pcbStructInfo// in/out    );
Decodes a structure of type lpszStructureType.
Parameters
dwEncodingType
Specifies the encoding standard to use. The following values are defined.
Certificate Encoding TypeValueX509_ASN_ENCODING0x00010001X509_NDR_ENCODING0x00010002
lpszStructureType
A pointer to an OID defining the structure type. If the high-order word of the lpszStructureType parameter is zero, the low order word specifies the integer identifier for the type of the given structure. Otherwise, this parameters is a long pointer to a null-terminated string. If the first character of the string is a pound sign (#), the remaining characters represent a decimal number that specifies the integer identifier for the structure type. For example, the string �#258� represents the integer identifier 258.
pbEncoded
A pointer to the encoded structure.
cbEncoded
The number of bytes pointed to by pbEncoded.
pvoid
Points to a buffer that receives the decoded structure.
This parameter can be NULL if it is desired to get the size of the information structure for memory allocation purposes. See the �Remarks� section that follows.
pcbStructInfo
Points to a variable that specifies the size, in bytes, of the buffer pointed to by the pvoid parameter. When the function returns, this variable contains the size of the decoded data copied to pvoid. The size contained in the variable pointed to by pcbStructInfo may indicate a size larger than the decoded structure, as the decoded structure may have pointers to auxiliary data. This size will be the sum of the size needed by the decoded structure and the auxiliary data.

Return Value
TRUE if this function succeeded. FALSE if this function failed. Call GetLastError to see the reason for the failure. 
Remarks
If the buffer specified by the pvoid parameter is not large enough to hold the decoded data, the function sets the ERROR_MORE_DATA code (which can be seen by calling GetLastError), and stores the required buffer size, in bytes, into the variable pointed to by pcbStructInfo.
If pvoid is NULL, and pcbStructInfo is non-NULL, the functions sets the ERROR_SUCCESS code (which can be seen by calling GetLastError), and stores the size of the decoded data, in bytes, in the variable pointed to by pcbStructInfo. This lets an application determine the size of, and the best way to allocate, a buffer for the decoded message.
Example
// EXAMPLE CODE FOR USING DecodeObject() - TBD

See Also
EncodeObject

EncodeObject
#include <wincrypt.h>
BOOL WINAPI EncodeObject(    DWORD                         dwEncodingType,// in    LPCSTR                         lpszStructureType,// in    void *                               pvoid,// in    BYTE *                           pbEncoded,// out    DWORD *                      pcbEncoded// in/out    );
Encodes a structure of type lpszStructureType.

Parameters
dwEncodingType
Specifies the encoding standard to use. The following values are defined.
Certificate Encoding TypeValueX509_ASN_ENCODING0x00010001X509_NDR_ENCODING0x00010002
lpszStructureType
A pointer to an OID defining the structure type. If the high-order word of the lpszStructureType parameter is zero, the low order word specifies the integer identifier for the type of the given structure. Otherwise, this parameters is a long pointer to a null-terminated string. If the first character of the string is a pound sign (#), the remaining characters represent a decimal number that specifies the integer identifier for the structure type. For example, the string �#258� represents the integer identifier 258.
pvoid
A pointer to the structure to be encoded. The structure must be of a type specified by lpszStructureType.
pbEncoded
Points to a buffer that receives the encoded structure. This parameter can be NULL if it is desired to get the size of the encoded data for memory allocation purposes. See the �Remarks� section that follows.
pcbEncoded
Points to a variable that specifies the size, in bytes, of the buffer pointed to by the pbEncoded parameter. When the function returns, this variable contains the size of the encoded data copied to pbEncoded.

Return Value
TRUE if this function succeeded. FALSE if this function failed. Call GetLastError to see the reason for the failure. 
Remarks
If the buffer specified by the pbEncoded parameter is not large enough to hold the encoded data, the function sets the ERROR_MORE_DATA code (which can be seen by calling GetLastError), and stores the required buffer size, in bytes, into the variable pointed to by pcbEncoded.
If pbEncoded is NULL, and pcbEncoded is non-NULL, the functions sets the ERROR_SUCCESS code (which can be seen by calling GetLastError), and stores the size of the encoded data, in bytes, in the variable pointed to by pcbEncoded. This lets an application determine the size of, and the best way to allocate, a buffer for the encoded message.
Example
// EXAMPLE CODE FOR USING EncodeObject() - TBD

See Also
DecodeObject


PAGE144  Part 2    Application Programmer�s Reference


	 STYLEREF  Ch \* MERGEFORMAT EncodeObject/DecodeObject Functions  PAGE143




	PAGE141






-�����7���h��/��=�
�����T������$��):=Ifw=Fq�����IS~�������,>ADVgqtw�����������$DUWbp��	-	|	�	6@dn����z���J
O
�
�
dq����������������������������������������������������������V�U�]b���
%{���Zb��������
+DVY\h�������������
*;>IW��ct#z���gr��8ADQ������y������]i��9Aqz����������������������������������������������������������uD]]]V�U�`������������
 #$%*+Z���������������������������u]`�]auD]]$������
<=Jyz{��=GHq��������@��0�����D��D��0"�0"����D��D�����D��D��0��0��
��.��.��0"�0"�
��.��.��
��.��.��
��.��.��
��.�	��
0
���
0h	���0&R	���0$
����0%U+ �� ITU~���������	?EFrxy������%&�.��
��.��.��
��.��.��
��.��.��0e�0��0��0��(��������(��������(��������(��������(��������(��������(��������(����
�l����
fHH$	<Ge&R	��
0%&'(Wbq���������				-	6@dn���z�cdq������0��0����0��0�����W��W��"�"����W��W�����W��W��0e�0��0��0��0��0��0��0��0��0��0��0��0O���0���Je	���	/&R	���0$
����	/%UA@=h
�l����
!�Zb���������� !W]^�������
=>IX��0��0����0��0����0��0��0��0��(��������(��������(��������(��������(��������(��������(��������0��0��7O���0��0�A@Lh
�l����
fHH$	<G=,=%����������#��grCDQ���9Apqz��������W��W��"�"����W��W�����W��W��0e�0��0��0��0��0��0��0��0��0O���0����0��0����0��0����0��0��0��0�r=,=JA@e	���	/&R	���0$
����	/%U"���%&'()*+�0^��0��0^��0���0��0^��0����0�r;wK`��Normala	6@��6	Heading 1��H��PU�]a	c(*@*	Heading 2
���<c",@,	Heading 3��P(c,@,	Heading 4��<(c,@,	Heading 5�((c8@�8	Heading 6 �(1�-��c"A`���"Default Paragraph Font�OH6p(�O"Whb4�O��"4Nh �(1�-�U�]a	c�O1BNp1(�OBNp2	P,�O��,Net�(&	a	bc.�O��.Ws��((�a	bc*�O*We8�&�bc*�O��*Ns��(	a	bc�O�Nhi�O!�Np1i���OA�Nei6(�O�(Ln1H�P��Oq�Nsi6�OQ�Wsi6�O��Whib"�O��"Sbre
���a	c �Oa� Wei
 6t�c4�O��"4Sbrh!���(U�]a	c*�O��"*Sbrp"��a	c(�O��B(Tt#$�<U�a	c$�O��$Tr$��&	a	c(�OR(Th%�$�<U�c.�Ob.Tp&�$�<0c,�O,Te'L�PP&	c �O Le(`�c�O1BTtw)��.�O��.Ih*	�����U�]a	c06�O��6Ch+`����@%-�	U�]a	c0X�O���XEx>,$�5���$	�
0�
<�H�T�`�	]a	c$�O�$Lb1-��P6�O���6Proch.���PPU�a	c�OHn1/�O!Hn20.�O��.Mp1�$�1�	]a	c�O�"Lp12&�OB&Erm3��d(U��OBErp4d,�O���,Cn5���[�`xa	c �O�b Lb2600p�O�rpExl^7W���$	�
0�
<�H�T�`��$�0�<
�H
�T�`�l�x�.�O��.Cap8$��0U�a	c(�O��(Ln290����0�O!�Lp2:04�O��4header rule;���2&�a	c6�O���6Rh1<��H���U�]a	c(e8�O��8Rmh=�$�1�0�U�]a	c�O1�Ermn><�O1Hn3?$�O��$Term1	@�a	c�ODef1AP�O��LbpB�O1�Np2iC�ORTerm2D�OBDef2E0��O�b�ExwmF��f���$	�
0�
<�H�T�`�~�������(�4�	@�L�X�d�p�|2�O���2RuleG����(�a	bc:�O:Synw'H�� 
�(�@�X�p�������`�O`SynNIJ0H`x����	�
 
8Ph������(@�O�LehJ���O�LmcKP,�O��,PbL	�����1�a	c�O�ProcpMP&�Oa�&TpiN��	0�OabTprO0�O�TexfP<*�Oa*TfQ�t�8�(0c�Oa"TpfR�OqTew
S��0�O��0ArtT��P�0a	c�OQRThfU �O�b TpifV(�O�(Ph
W��1�
U�]bc<&�O&indexXP
\�]bc0�O�0CapSdY�1�	06�OA6ArtSd"Z�1�0p�O�pTex^[�W���$	�
0�
<�H�T�`�v���
� 
�,�8�D�P�J�O�J*hb2)\`x����&	"'	"(	")	"-�/$
U�]bce
F�OABF*hb1.]����&	
'	
(	
)	
1�%-�/$be$�Oa�$Tart^��.�O�.Tei_6�PP&	c6�O��"6Sbrh2`�((U�]a	c,�O,SbrLba0��P0n�Oq"nExl2[b0T�$�0�<
�H
�T�`�l�x��<�H�	T�`�l�x��
��OSbrLpcb�O��BbSbrExCd$�2�$�0�<
�H
�T�`�l�x	]a	c�O�Tehe��$�O�b$Tsyn
f$�<c,�O",SbrLeg`�c"�O"Tesht�c$�O��$Sbrsi���a	c:�O���:*Cbxj����.�d��	]a	c�O�B*Cbxekd"'@��"Annotation Referenceb*@�*Annotation Textm�bc@��TOC 3n0 @ TOC 1o(0
@�TOC 2p* @��*Footerq���o9a	c
2@���2Headerr��.�0U�]a	c"@2"
Normal Indents �O" Nhw
t��1�0�%�ORNormalwu���OabTsyntv++����!���!��� ���!���(�=+/	;�������Z�&���+	<Z~�������!��
��!��!��
����):=Ifw���������,=JOgp����DUbp,|�6?dm����z	z	�	�	�	J
O
�
�
�����




%
{
�
�
�
|���������
DU������*;IWct"z���gq��8A����y������]i��[gz��A-MKUCIN+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docA-MKUCIN+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docA-MKUCIN+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docA-MKUCIN+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docA-MKUCIN+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docMicrosoft CorporationC:\Rick\Crypto 8-9\wincert.docmichael kucinski+C:\ispudocs\cryptapi\ver2_0\ref\wincert.docMicrosoft Corporation+C:\ispudocs\cryptapi\ver2_0\ref\wincert.NEURobert MetrickC:\ref\wincert.NEUMicrosoft Corporation%C:\Public\CryptoRef\Encode-Decode.doc�@\\MSPRINT16\6/1051  PRIVE 157.56.112.243Ne00:winspool\\MSPRINT16\6/1051  PRIVE 157.56.112.243\\MSPRINT16\6/1051  PRIVE 157.5�psdXXetter ����%��������������������������������������������''''\\MSPRINT16\6/1051  PRIVE 157.5�psdXXetter ����%��������������������������������������������''''�&&��&&s�Times New Roman�Symbol&�Arial5�Courier New&�Arial Narrow5�Lucida Sans Typewriter#A�VhE���$	f�T��;
�+$VB    Microsoft CorporationMicrosoft Corporation	

 !"#$%&��������+����3����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Root EntryT}���������`��������	�F`�o���p8�Ԛ�*�WordDocument���0�����������`����	MCompObjl�Td������������������j�SummaryInformation�0(���������P� �����	����
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
����	�FMicrosoft Word Document
MSWordDocWord.Document.6�9�q�������Oh��+'��0��������	$0
Xdp
|����� 
 Microsoft Corporation 
 Normal.dotMicrosoft Corporation�4Microsoft Word for WindoDocumentSummaryInformation8������������
�����������������������������������������՜.��+,��0�HP`hpx���WASSERj+
 ws 95@���@�q�,��@^����@XsԚ��;����՜.��+,��0�HP`hpx���WASSERj+