Fix Jira problem

This commit is contained in:
Jaex 2014-12-11 01:06:41 +02:00
parent 21323032be
commit 1a91bf72c8

View file

@ -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);