<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Imran Hussain pushed to branch beta at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/9c458ae54b008c0595e3a9197008516216af4675">9c458ae5</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-09-24T16:46:43Z</i>
</div>
<pre class='commit-message'>Disable cert checking when talking to the SU-API

Disable verifying of the cert wehn talking to the SU-API VM. We don't need it,
as long as the data is sent down a secure connection that's all we really care
about. Also this makes tings easier to admin as we don't need to worry about
renewing certs during freshers.</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/0758bd464a9c9e8faea286fa1cf07fb8ed796481">0758bd46</a></strong>
<div>
<span>by Callum Massey</span>
<i>at 2015-09-24T17:23:10Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' into 'master'

Disable cert checking when talking to the SU-API

Disable verifying of the cert wehn talking to the SU-API VM. We don't need it,
as long as the data is sent down a secure connection that's all we really care
about. Also this makes tings easier to admin as we don't need to worry about
renewing certs during freshers.

See merge request !13</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/d13fa5d27b26f3412d19e0254f9ae975df060cde">d13fa5d2</a></strong>
<div>
<span>by Imran Hussain</span>
<i>at 2015-09-24T19:12:24Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' into 'beta'

Push "Disable cert checking when talking to the SU-API" onto beta

Push "Disable cert checking when talking to the SU-API onto" beta

See merge request !14</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
components/susignup-admin.php
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
components/susignup.php
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/compare/6d4a65e5afaacb53b155e03bf245ef23c99a95ab...d13fa5d27b26f3412d19e0254f9ae975df060cde#diff-0'>
<strong>
components/susignup-admin.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/components/susignup-admin.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/components/susignup-admin.php
</span><span style="color: #aaaaaa">@@ -38,6 +38,8 @@ if (isset($session->groups[$permission])) {
</span>                           $apiReq = curl_init();
                                curl_setopt($apiReq, CURLOPT_URL, $url);
                                curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
<span style="color: #000000;background-color: #ddffdd">+                                curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
+                               curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
</span> 
                                $apiResult = curl_exec($apiReq);
                                if ($apiResult === FALSE) {
<span style="color: #aaaaaa">@@ -171,6 +173,8 @@ if (isset($session->groups[$permission])) {
</span>                                 $apiReq = curl_init();
                                 curl_setopt($apiReq, CURLOPT_URL, $url);
                                 curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
<span style="color: #000000;background-color: #ddffdd">+                                curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
+                               curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
</span> 
                                 $apiResult = curl_exec($apiReq);
                                libxml_use_internal_errors(true);
<span style="color: #aaaaaa">@@ -207,6 +211,8 @@ if (isset($session->groups[$permission])) {
</span>           $apiReq = curl_init();
                curl_setopt($apiReq, CURLOPT_URL, $url);
                curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
<span style="color: #000000;background-color: #ddffdd">+                curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
+               curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
</span> 
                $apiResult = curl_exec($apiReq);
                $sumembers = su_response_decode($apiResult);
<span style="color: #aaaaaa">@@ -260,6 +266,8 @@ if (isset($session->groups[$permission])) {
</span>           $apiReq = curl_init();
                curl_setopt($apiReq, CURLOPT_URL, $url);
                curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
<span style="color: #000000;background-color: #ddffdd">+                curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
+               curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
</span> 
                $apiResult = curl_exec($apiReq);
                $sumembers = su_response_decode($apiResult);
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/sucssite/sucs-site/compare/6d4a65e5afaacb53b155e03bf245ef23c99a95ab...d13fa5d27b26f3412d19e0254f9ae975df060cde#diff-1'>
<strong>
components/susignup.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/components/susignup.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/components/susignup.php
</span><span style="color: #aaaaaa">@@ -34,6 +34,8 @@ if(!empty($_REQUEST['sid'])&&!empty($_REQUEST['transactionID'])){
</span>   curl_setopt($ch,CURLOPT_POST,count($fields));
        curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
<span style="color: #000000;background-color: #ddffdd">+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+       curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
</span>   //execute post
        $result = curl_exec($ch);
 
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/compare/6d4a65e5afaacb53b155e03bf245ef23c99a95ab...d13fa5d27b26f3412d19e0254f9ae975df060cde">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://projects.sucs.org/sucssite/sucs-site/compare/6d4a65e5afaacb53b155e03bf245ef23c99a95ab...d13fa5d27b26f3412d19e0254f9ae975df060cde"}}</script>
</p>
</div>
</body>
</html>