Passive-interface command can be used with all routing protocols except BGP. In general, it prevents from sending the routing updates but it behaves differently in every routing protocol.
In OSPF the specified interface appears as a STUB network in OSPF domain and OSPF information is neigher sent nor received through the specified interface. When you got router with many interfaces (in ISP) you can use passive-interface default command and then enable not passive interfaces one by one where you want to have adjacency.