1 2<!DOCTYPE html> 3 4<html> 5 <head> 6 <meta charset="utf-8" /> 7 <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> 8 9 <title>krb5_address_order - Return an ordering of the specified addresses. — MIT Kerberos Documentation</title> 10 <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" /> 11 <link rel="stylesheet" type="text/css" href="../../../_static/agogo.css" /> 12 <link rel="stylesheet" type="text/css" href="../../../_static/kerb.css" /> 13 <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script> 14 <script src="../../../_static/jquery.js"></script> 15 <script src="../../../_static/underscore.js"></script> 16 <script src="../../../_static/doctools.js"></script> 17 <link rel="author" title="About these documents" href="../../../about.html" /> 18 <link rel="index" title="Index" href="../../../genindex.html" /> 19 <link rel="search" title="Search" href="../../../search.html" /> 20 <link rel="copyright" title="Copyright" href="../../../copyright.html" /> 21 <link rel="next" title="krb5_address_search - Search a list of addresses for a specified address." href="krb5_address_search.html" /> 22 <link rel="prev" title="krb5_address_compare - Compare two Kerberos addresses." href="krb5_address_compare.html" /> 23 </head><body> 24 <div class="header-wrapper"> 25 <div class="header"> 26 27 28 <h1><a href="../../../index.html">MIT Kerberos Documentation</a></h1> 29 30 <div class="rel"> 31 32 <a href="../../../index.html" title="Full Table of Contents" 33 accesskey="C">Contents</a> | 34 <a href="krb5_address_compare.html" title="krb5_address_compare - Compare two Kerberos addresses." 35 accesskey="P">previous</a> | 36 <a href="krb5_address_search.html" title="krb5_address_search - Search a list of addresses for a specified address." 37 accesskey="N">next</a> | 38 <a href="../../../genindex.html" title="General Index" 39 accesskey="I">index</a> | 40 <a href="../../../search.html" title="Enter search criteria" 41 accesskey="S">Search</a> | 42 <a href="mailto:krb5-bugs@mit.edu?subject=Documentation__krb5_address_order - Return an ordering of the specified addresses.">feedback</a> 43 </div> 44 </div> 45 </div> 46 47 <div class="content-wrapper"> 48 <div class="content"> 49 <div class="document"> 50 51 <div class="documentwrapper"> 52 <div class="bodywrapper"> 53 <div class="body" role="main"> 54 55 <section id="krb5-address-order-return-an-ordering-of-the-specified-addresses"> 56<h1>krb5_address_order - Return an ordering of the specified addresses.<a class="headerlink" href="#krb5-address-order-return-an-ordering-of-the-specified-addresses" title="Permalink to this headline">¶</a></h1> 57<dl class="c function"> 58<dt class="sig sig-object c" id="c.krb5_address_order"> 59<span class="kt"><span class="pre">int</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">krb5_address_order</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="../types/krb5_context.html#c.krb5_context" title="krb5_context"><span class="n"><span class="pre">krb5_context</span></span></a><span class="w"> </span><span class="n"><span class="pre">context</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../types/krb5_address.html#c.krb5_address" title="krb5_address"><span class="n"><span class="pre">krb5_address</span></span></a><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">addr1</span></span>, <span class="k"><span class="pre">const</span></span><span class="w"> </span><a class="reference internal" href="../types/krb5_address.html#c.krb5_address" title="krb5_address"><span class="n"><span class="pre">krb5_address</span></span></a><span class="w"> </span><span class="p"><span class="pre">*</span></span><span class="n"><span class="pre">addr2</span></span><span class="sig-paren">)</span><a class="headerlink" href="#c.krb5_address_order" title="Permalink to this definition">¶</a><br /></dt> 60<dd></dd></dl> 61 62<dl class="field-list"> 63<dt class="field-odd">param</dt> 64<dd class="field-odd"><p><strong>[in]</strong> <strong>context</strong> - Library context</p> 65<p><strong>[in]</strong> <strong>addr1</strong> - First address</p> 66<p><strong>[in]</strong> <strong>addr2</strong> - Second address</p> 67</dd> 68</dl> 69<dl class="field-list simple"> 70<dt class="field-odd">retval</dt> 71<dd class="field-odd"><ul class="simple"> 72<li><p>0 if The two addresses are the same</p></li> 73<li><p>< 0 First address is less than second</p></li> 74<li><p>> 0 First address is greater than second</p></li> 75</ul> 76</dd> 77</dl> 78</section> 79 80 81 <div class="clearer"></div> 82 </div> 83 </div> 84 </div> 85 </div> 86 <div class="sidebar"> 87 88 <h2>On this page</h2> 89 <ul> 90<li><a class="reference internal" href="#">krb5_address_order - Return an ordering of the specified addresses.</a></li> 91</ul> 92 93 <br/> 94 <h2>Table of contents</h2> 95 <ul class="current"> 96<li class="toctree-l1"><a class="reference internal" href="../../../user/index.html">For users</a></li> 97<li class="toctree-l1"><a class="reference internal" href="../../../admin/index.html">For administrators</a></li> 98<li class="toctree-l1 current"><a class="reference internal" href="../../index.html">For application developers</a><ul class="current"> 99<li class="toctree-l2"><a class="reference internal" href="../../gssapi.html">Developing with GSSAPI</a></li> 100<li class="toctree-l2"><a class="reference internal" href="../../y2038.html">Year 2038 considerations for uses of krb5_timestamp</a></li> 101<li class="toctree-l2"><a class="reference internal" href="../../h5l_mit_apidiff.html">Differences between Heimdal and MIT Kerberos API</a></li> 102<li class="toctree-l2"><a class="reference internal" href="../../init_creds.html">Initial credentials</a></li> 103<li class="toctree-l2"><a class="reference internal" href="../../princ_handle.html">Principal manipulation and parsing</a></li> 104<li class="toctree-l2 current"><a class="reference internal" href="../index.html">Complete reference - API and datatypes</a><ul class="current"> 105<li class="toctree-l3 current"><a class="reference internal" href="index.html">krb5 API</a></li> 106<li class="toctree-l3"><a class="reference internal" href="../types/index.html">krb5 types and structures</a></li> 107<li class="toctree-l3"><a class="reference internal" href="../macros/index.html">krb5 simple macros</a></li> 108</ul> 109</li> 110</ul> 111</li> 112<li class="toctree-l1"><a class="reference internal" href="../../../plugindev/index.html">For plugin module developers</a></li> 113<li class="toctree-l1"><a class="reference internal" href="../../../build/index.html">Building Kerberos V5</a></li> 114<li class="toctree-l1"><a class="reference internal" href="../../../basic/index.html">Kerberos V5 concepts</a></li> 115<li class="toctree-l1"><a class="reference internal" href="../../../formats/index.html">Protocols and file formats</a></li> 116<li class="toctree-l1"><a class="reference internal" href="../../../mitK5features.html">MIT Kerberos features</a></li> 117<li class="toctree-l1"><a class="reference internal" href="../../../build_this.html">How to build this documentation from the source</a></li> 118<li class="toctree-l1"><a class="reference internal" href="../../../about.html">Contributing to the MIT Kerberos Documentation</a></li> 119<li class="toctree-l1"><a class="reference internal" href="../../../resources.html">Resources</a></li> 120</ul> 121 122 <br/> 123 <h4><a href="../../../index.html">Full Table of Contents</a></h4> 124 <h4>Search</h4> 125 <form class="search" action="../../../search.html" method="get"> 126 <input type="text" name="q" size="18" /> 127 <input type="submit" value="Go" /> 128 <input type="hidden" name="check_keywords" value="yes" /> 129 <input type="hidden" name="area" value="default" /> 130 </form> 131 132 </div> 133 <div class="clearer"></div> 134 </div> 135 </div> 136 137 <div class="footer-wrapper"> 138 <div class="footer" > 139 <div class="right" ><i>Release: 1.21.3</i><br /> 140 © <a href="../../../copyright.html">Copyright</a> 1985-2024, MIT. 141 </div> 142 <div class="left"> 143 144 <a href="../../../index.html" title="Full Table of Contents" 145 >Contents</a> | 146 <a href="krb5_address_compare.html" title="krb5_address_compare - Compare two Kerberos addresses." 147 >previous</a> | 148 <a href="krb5_address_search.html" title="krb5_address_search - Search a list of addresses for a specified address." 149 >next</a> | 150 <a href="../../../genindex.html" title="General Index" 151 >index</a> | 152 <a href="../../../search.html" title="Enter search criteria" 153 >Search</a> | 154 <a href="mailto:krb5-bugs@mit.edu?subject=Documentation__krb5_address_order - Return an ordering of the specified addresses.">feedback</a> 155 </div> 156 </div> 157 </div> 158 159 </body> 160</html>