<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>Andrew Price pushed to branch master at <a href="https://projects.sucs.org/arthur/mw">Justin Mitchell / mw</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f">253cffef</a></strong>
<div>
<span>by Andrew Price</span>
<i>at 2015-10-22T14:54:16Z</i>
</div>
<pre class='commit-message'>Remove the dependency on cproto

"There is a limit to the time assigned you, and if you don't use it to
free yourself it will be gone and never return."
                                               -- Marcus Aurelius</pre>
</li>
</ul>
<h4>5 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
.gitignore
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
mw.spec
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
src/Makefile
</a>
</li>
<li class='file-stats'>
<a href='#diff-3'>
src/nonce.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-4'>
<span class='new-file'>
+
src/nonce.h
</span>
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f#diff-0'>
<strong>
.gitignore
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/.gitignore
</span><span style="color: #000000;background-color: #ddffdd">+++ b/.gitignore
</span><span style="color: #aaaaaa">@@ -13,7 +13,7 @@ src/client/mw
</span> src/mw
 src/mwserv
 src/mwtest
-src/nonce.h
<span style="color: #000000;background-color: #ddffdd">+src/nonce-def.h
</span> src/server/mwserv
 src/utils/del_user
 src/utils/fixuser
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f#diff-1'>
<strong>
mw.spec
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/mw.spec
</span><span style="color: #000000;background-color: #ddffdd">+++ b/mw.spec
</span><span style="color: #aaaaaa">@@ -11,7 +11,7 @@ Requires: readline sqlite curl
</span> #Requires(post): systemd-units
 #Requires(preun): systemd-units
 #Requires(postun): systemd-units
-BuildRequires: libtermcap-devel readline-devel glibc-devel sqlite-devel curl-devel openssl-devel jansson-devel postgresql-devel cproto
<span style="color: #000000;background-color: #ddffdd">+BuildRequires: libtermcap-devel readline-devel glibc-devel sqlite-devel curl-devel openssl-devel jansson-devel postgresql-devel
</span> URL: http://projects.sucs.org/projects/mw/
 
 %description
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f#diff-2'>
<strong>
src/Makefile
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/Makefile
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/Makefile
</span><span style="color: #aaaaaa">@@ -12,12 +12,11 @@ build: $(JSOBJ) libmw.a
</span> libmw.a: $(CODE:.c=.o)
        ar rcs libmw.a $^
 
-nonce.c: nonce.h
<span style="color: #000000;background-color: #ddffdd">+nonce.c: nonce.h nonce-def.h
</span> 
-nonce.h:
-       echo -n "#define NONCE \"" > nonce.h
-       dd if=/dev/urandom bs=1 count=8 | base64 | sed -e 's/$$/"/' >> nonce.h
-       cproto nonce.c >> nonce.h
<span style="color: #000000;background-color: #ddffdd">+nonce-def.h:
+       echo -n "#define NONCE \"" > $@
+       dd if=/dev/urandom bs=1 count=8 | base64 | sed -e 's/$$/"/' >> $@
</span> 
 install: all
        $(MAKE) -C client $@
</code></pre>

<br>
</li>
<li id='diff-3'>
<a href='https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f#diff-3'>
<strong>
src/nonce.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/nonce.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/nonce.c
</span><span style="color: #aaaaaa">@@ -1,4 +1,5 @@
</span> #include <string.h>
<span style="color: #000000;background-color: #ddffdd">+#include "nonce-def.h"
</span> #include "nonce.h"
 
 const char * get_nonce()
</code></pre>

<br>
</li>
<li id='diff-4'>
<a href='https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f#diff-4'>
<strong>
src/nonce.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- /dev/null
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/nonce.h
</span><span style="color: #aaaaaa">@@ -0,0 +1,7 @@
</span><span style="color: #000000;background-color: #ddffdd">+#ifndef NONCE_H
+#define NONCE_H
+
+const char *get_nonce(void);
+int match_nonce(const char *test);
+
+#endif /* NONCE_H */
</span></code></pre>

<br>
</li>

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

<br>
<a href="https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/arthur/mw/commit/253cffef7f36c981da760beed1893ebb3fb7867f"}}</script>
</p>
</div>
</body>
</html>