Skip to content

Added EmailSecurity section from Article to GenericInterface #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ perform TicketCreate Operation. This will return the created ticket number.
},

# Signing and encryption, only used when ArticleSend is set to 1
EmailSecurity => {
Backend => 'PGP', # PGP or SMIME
Method => 'Detached', # Optional Detached or Inline (defaults to Detached)
SignKey => '81877F5E', # Optional
EncryptKeys => [ '81877F5E', '3b630c80' ], # Optional
},
# or:
Sign => {
Type => 'PGP',
SubType => 'Inline|Detached',
Expand Down Expand Up @@ -1730,7 +1737,7 @@ sub _TicketCreate {
}

# signing and encryption
for my $Key (qw( Sign Crypt )) {
for my $Key (qw( Sign Crypt EmailSecurity )) {
if ( IsHashRefWithData( $Article->{$Key} ) ) {
$ArticleParams{$Key} = $Article->{$Key};
}
Expand Down
9 changes: 8 additions & 1 deletion Kernel/GenericInterface/Operation/Ticket/TicketUpdate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ if applicable the created ArticleID.
},

# Signing and encryption, only used when ArticleSend is set to 1
EmailSecurity => {
Backend => 'PGP', # PGP or SMIME
Method => 'Detached', # Optional Detached or Inline (defaults to Detached)
SignKey => '81877F5E', # Optional
EncryptKeys => [ '81877F5E', '3b630c80' ], # Optional
},
# or:
Sign => {
Type => 'PGP',
SubType => 'Inline|Detached',
Expand Down Expand Up @@ -2279,7 +2286,7 @@ sub _TicketUpdate {
}

# signing and encryption
for my $Key (qw( Sign Crypt )) {
for my $Key (qw( Sign Crypt EmailSecurity )) {
if ( IsHashRefWithData( $Article->{$Key} ) ) {
$ArticleParams{$Key} = $Article->{$Key};
}
Expand Down