Added object manager samples to doc + fix Certificate.thum[b]print typo

This commit is contained in:
hakril
2018-07-13 14:41:09 +02:00
parent d232928780
commit a75de140d6
3 changed files with 24 additions and 4 deletions
+20
View File
@@ -128,6 +128,26 @@ Output
.. literalinclude:: samples_output\event_log_eventlog.txt
.. _sample_object_manager:
Object manager
""""""""""""""
.. literalinclude:: ..\..\samples\object_manager\object_manager.py
Output
.. literalinclude:: samples_output\object_manager_object_manager.txt
find objects
''''''''''''
.. literalinclude:: ..\..\samples\object_manager\findobj.py
Output
.. literalinclude:: samples_output\object_manager_findobj.txt
.. _sample_wintrust:
+1 -1
View File
@@ -12,7 +12,7 @@ The :class:`TaskService` is accessible via :py:attr:`windows.system.task_schedul
.. warning::
This API have not been tested on real case yet and may be subject to changes.
This API have not been tested on real cases yet and may be subject to changes.
TaskService
+3 -3
View File
@@ -244,14 +244,14 @@ class Certificate(gdef.CERT_CONTEXT):
return buffer[:size.value]
@property
def thumprint(self):
"""The thumprint of the certificate (which is the sha1 of the encoded cert).
def thumbprint(self):
"""The thumbprint of the certificate (which is the sha1 of the encoded cert).
Example:
>>> x
<Certificate "YOLO2" serial="6f 1d 3e 7d d9 77 59 a9 4c 1c 53 dc 80 db 0c fe">
>>> x.thumprint
>>> x.thumbprint
'E2 A2 DB 76 A1 DD 8E 70 0D C6 9F CB 71 CF 29 12 C6 D9 78 97'
:type: :class:`str`