mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Fix Jira problem
This commit is contained in:
parent
21323032be
commit
1a91bf72c8
1 changed files with 4 additions and 5 deletions
|
@ -26,6 +26,9 @@ You should have received a copy of the GNU General Public License
|
|||
// gpailler
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using ShareX.HelpersLib;
|
||||
using ShareX.UploadersLib.GUI;
|
||||
using ShareX.UploadersLib.HelperClasses;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
|
@ -35,13 +38,9 @@ You should have received a copy of the GNU General Public License
|
|||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using ShareX.UploadersLib.GUI;
|
||||
using ShareX.UploadersLib.HelperClasses;
|
||||
|
||||
namespace ShareX.UploadersLib.FileUploaders
|
||||
{
|
||||
using ShareX.HelpersLib;
|
||||
|
||||
public class Jira : FileUploader, IOAuth
|
||||
{
|
||||
private const string PathRequestToken = "/plugins/servlet/oauth/request-token";
|
||||
|
@ -70,7 +69,7 @@ static Jira()
|
|||
// makecert -pe -n "CN=ShareX" -a sha1 -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -len 1024 -sv jira_sharex.pvk jira_sharex.cer
|
||||
// pvk2pfx -pvk jira_sharex.pvk -spc jira_sharex.cer -pfx jira_sharex.pfx
|
||||
// (Based on: http://nick-howard.blogspot.fr/2011/05/makecert-x509-certificates-and-rsa.html)
|
||||
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("UploadersLib.APIKeys.jira_sharex.pfx"))
|
||||
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("ShareX.UploadersLib.APIKeys.jira_sharex.pfx"))
|
||||
{
|
||||
byte[] pfx = new byte[stream.Length];
|
||||
stream.Read(pfx, 0, pfx.Length);
|
||||
|
|
Loading…
Reference in a new issue