Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 0acdf59
  • /
  • util
  • /
  • perl
  • /
  • TLSProxy
  • /
  • Alert.pm
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:e27497dbde17ad58c02dfedec1892c8d7d60210c
directory badge Iframe embedding
swh:1:dir:a4eba242069cbd47f727fb70cf8b39e30a9771ab
Alert.pm
# Copyright 2018-2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License").  You may not use
# this file except in compliance with the License.  You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html

use strict;

package TLSProxy::Alert;

sub new
{
    my $class = shift;
    my ($server,
        $encrypted,
        $level,
        $description) = @_;

    my $self = {
        server => $server,
        encrypted => $encrypted,
        level => $level,
        description => $description
    };

    return bless $self, $class;
}

#Read only accessors
sub server
{
    my $self = shift;
    return $self->{server};
}
sub encrypted
{
    my $self = shift;
    return $self->{encrypted};
}
sub level
{
    my $self = shift;
    return $self->{level};
}
sub description
{
    my $self = shift;
    return $self->{description};
}
1;

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top