/****************************************************************************** * * Name: acevents.h - Event subcomponent prototypes and defines * *****************************************************************************/ /* * Copyright (C) 2000 - 2004, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer, * without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * substantially similar to the "NO WARRANTY" disclaimer below * ("Disclaimer") and any redistribution must be conditioned upon * including a substantially similar Disclaimer requirement for further * binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ #ifndef __ACEVENTS_H__ #define __ACEVENTS_H__ acpi_status acpi_ev_initialize ( void); acpi_status acpi_ev_handler_initialize ( void); /* * Evfixed - Fixed event handling */ acpi_status acpi_ev_fixed_event_initialize ( void); u32 acpi_ev_fixed_event_detect ( void); u32 acpi_ev_fixed_event_dispatch ( u32 event); /* * Evmisc */ u8 acpi_ev_is_notify_object ( struct acpi_namespace_node *node); acpi_status acpi_ev_acquire_global_lock( u16 timeout); acpi_status acpi_ev_release_global_lock( void); acpi_status acpi_ev_init_global_lock_handler ( void); u32 acpi_ev_get_gpe_number_index ( u32 gpe_number); acpi_status acpi_ev_queue_notify_request ( struct acpi_namespace_node *node, u32 notify_value); void ACPI_SYSTEM_XFACE acpi_ev_notify_dispatch ( void *context); /* * Evgpe - GPE handling and dispatch */ acpi_status acpi_ev_walk_gpe_list ( ACPI_GPE_CALLBACK gpe_walk_callback); u8 acpi_ev_valid_gpe_event ( struct acpi_gpe_event_info *gpe_event_info); struct acpi_gpe_event_info * acpi_ev_get_gpe_event_info ( acpi_handle gpe_device, u32 gpe_number); acpi_status acpi_ev_gpe_initialize ( void); acpi_status acpi_ev_create_gpe_block ( struct acpi_namespace_node *gpe_device, struct acpi_generic_address *gpe_block_address, u32 register_count, u8 gpe_block_base_number, u32 interrupt_level, struct acpi_gpe_block_info **return_gpe_block); acpi_status acpi_ev_delete_gpe_block ( struct acpi_gpe_block_info *gpe_block); u32 acpi_ev_gpe_dispatch ( struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number); u32 acpi_ev_gpe_detect ( struct acpi_gpe_xrupt_info *gpe_xrupt_list); /* * Evregion - Address Space handling */ acpi_status acpi_ev_init_address_spaces ( void); acpi_status acpi_ev_address_space_dispatch ( union acpi_operand_object *region_obj, u32 function, acpi_physical_address address, u32 bit_width, void *value); acpi_status acpi_ev_install_handler ( acpi_handle obj_handle, u32 level, void *context, void **return_value); acpi_status acpi_ev_attach_region ( union acpi_operand_object *handler_obj, union acpi_operand_object *region_obj, u8 acpi_ns_is_locked); void acpi_ev_detach_region ( union acpi_operand_object *region_obj, u8 acpi_ns_is_locked); acpi_status acpi_ev_execute_reg_method ( union acpi_operand_object *region_obj, u32 function); acpi_status acpi_ev_reg_run ( acpi_handle obj_handle, u32 level, void *context, void **return_value); /* * Evregini - Region initialization and setup */ acpi_status acpi_ev_system_memory_region_setup ( acpi_handle handle, u32 function, void *handler_context, void **region_context); acpi_status acpi_ev_io_space_region_setup ( acpi_handle handle, u32 function, void *handler_context, void **region_context); acpi_status acpi_ev_pci_config_region_setup ( acpi_handle handle, u32 function, void *handler_context, void **region_context); acpi_status acpi_ev_cmos_region_setup ( acpi_handle handle, u32 function, void *handler_context, void **region_context); acpi_status acpi_
Doing a release
===============
Doing a release of ``cryptography`` requires a few steps.
Security Releases
-----------------
In addition to the other steps described below, for a release which fixes a
security vulnerability, you should also include the following steps:
* Request a `CVE from MITRE`_. Once you have received the CVE, it should be
included in the :doc:`changelog`. Ideally you should request the CVE before
starting the release process so that the CVE is available at the time of the
release.
* Ensure that the :doc:`changelog` entry credits whoever reported the issue.
* The release should be announced on the `oss-security`_ mailing list, in
addition to the regular announcement lists.
Verifying OpenSSL version
-------------------------
The release process creates wheels bundling OpenSSL for Windows, macOS, and
Linux. Check that the Windows and macOS Jenkins builders have the latest
version of OpenSSL installed and verify that the latest version is present in
the ``pyca/cryptography-manylinux1`` docker containers. If anything is out
of date follow the instructions for upgrading OpenSSL.
Upgrading OpenSSL
-----------------
Use the `upgrading OpenSSL issue template`_.
Bumping the version number
--------------------------
The next step in doing a release is bumping the version number in the
software.
* Update the version number in ``src/cryptography/__about__.py``.
* Update the version number in ``vectors/cryptography_vectors/__about__.py``.
* Set the release date in the :doc:`/changelog`.
* Do a commit indicating this.
* Send a pull request with this.
* Wait for it to be merged.
Performing the release
----------------------
The commit that merged the version number bump is now the official release
commit for this release. You will need to have ``gpg`` installed and a ``gpg``
key in order to do a release. Once this has happened:
* Run ``python release.py {version}``.
The release should now be available on PyPI and a tag should be available in
the repository.
Verifying the release
---------------------
You should verify that ``pip install cryptography`` works correctly:
.. code-block:: pycon
>>> import cryptography
>>> cryptography.__version__
'...'
>>> import cryptography_vectors
>>> cryptography_vectors.__version__
'...'
Verify that this is the version you just released.
For the Windows wheels check the builds for the ``cryptography-wheel-builder``
job and verify that the final output for each build shows it loaded and linked
the expected OpenSSL version.
Post-release tasks
------------------
* Update the version number to the next major (e.g. ``0.5.dev1``) in
``src/cryptography/__about__.py`` and
``vectors/cryptography_vectors/__about__.py``.
* Close the `milestone`_ for the previous release on GitHub.
* Add new :doc:`/changelog` entry with next version and note that it is under
active development
* Send a pull request with these items
* Check for any outstanding code undergoing a deprecation cycle by looking in
``cryptography.utils`` for ``DeprecatedIn**`` definitions. If any exist open
a ticket to increment them for the next release.
* Send an email to the `mailing list`_ and `python-announce`_ announcing the
release.
.. _`CVE from MITRE`: https://cveform.mitre.org/
.. _`oss-security`: https://www.openwall.com/lists/oss-security/
.. _`upgrading OpenSSL issue template`: https://github.com/pyca/cryptography/issues/new?template=openssl-release.md
.. _`milestone`: https://github.com/pyca/cryptography/milestones
.. _`mailing list`: https://mail.python.org/mailman/listinfo/cryptography-dev
.. _`python-announce`: https://mail.python.org/mailman/listinfo/python-announce-list